from which/whereis 差异
which (1) - shows the full path of (shell) commands
whereis (1) - locate the binary, source, and manual page files for a command
Run Code Online (Sandbox Code Playgroud)
我会使用它which
,因为它会向您显示二进制文件的位置,因为我认为这就是您所需要的。然而,Java 可能安装在其他地方并且which
不会报告它,因为它只在环境变量中列出的目录中搜索可执行文件或脚本PATH
。
归档时间: |
|
查看次数: |
1605 次 |
最近记录: |