whereis 没有返回任何内容

whereis 没有返回任何内容

我想知道我的 jupyter notebook 可执行文件位于哪里。我的 python 环境使用的是哪一个。所以我输入

>whereis jupyter

在我的终端中。但它什么也没返回。当我对 python 执行相同操作时,它起作用了。我肯定安装了 jupyter,因为我可以使用

>jupyter

。 怎么了?

答案1

来自whereis手册:

 DESCRIPTION
 The whereis utility checks the standard binary directories for the specified programs, printing out
 the paths of any it finds.

 The path searched is the string returned by the sysctl(8) utility for the ``user.cs_path'' string.

输出来自sysctl

sysctl user.cs_path
user.cs_path: /usr/bin:/bin:/usr/sbin:/sbin

当然,jupyter不在任何这些目录中。

相关内容