1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.zh/common/which.md

12 lines
238 B
Markdown
Raw Normal View History

2019-08-14 22:43:23 +08:00
# which
> 在用户的`PATH`中寻找可执行文件的路径
2019-10-19 14:12:27 +08:00
-`PATH`中寻找可执行文件并打印第一个匹配的结果:
2019-08-14 22:43:23 +08:00
`which {{executable}}`
2019-10-19 14:12:27 +08:00
- 如果有多个匹配结果则打印所有结果:
2019-08-14 22:43:23 +08:00
`which -a {{executable}}`