13 lines
295 B
Markdown
13 lines
295 B
Markdown
# which
|
|
|
|
> 在用户的 PATH 路径中查找程序。
|
|
> 更多信息:<https://manned.org/which>。
|
|
|
|
- 搜索 PATH 环境变量并显示任何匹配的可执行文件的位置:
|
|
|
|
`which {{executable}}`
|
|
|
|
- 如果有多个匹配的可执行文件,则显示所有:
|
|
|
|
`which -a {{executable}}`
|