2014-02-11 00:35:16 +00:00
|
|
|
# which
|
|
|
|
|
2018-05-11 05:10:16 +01:00
|
|
|
> Locate a program in the user's path.
|
2021-10-19 21:11:22 +01:00
|
|
|
> More information: <https://manned.org/which>.
|
2014-02-11 00:35:16 +00:00
|
|
|
|
2016-01-20 11:44:52 +00:00
|
|
|
- Search the PATH environment variable and display the location of any matching executables:
|
2014-02-11 00:35:16 +00:00
|
|
|
|
|
|
|
`which {{executable}}`
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- If there are multiple executables which match, display all:
|
2014-02-11 00:35:16 +00:00
|
|
|
|
|
|
|
`which -a {{executable}}`
|