tldr/pages.zh/common/which.md

290 B

which

在用户的PATH中寻找可执行文件的路径。 更多信息:https://manned.org/which.

  • PATH中寻找可执行文件并打印第一个匹配的结果:

which {{executable}}

  • 如果有多个匹配结果则打印所有结果:

which -a {{executable}}