2025-03-14 21:59:59 -06:00
|
|
|
# which
|
|
|
|
|
|
|
|
|
|
> Locate a program in the user's path.
|
2025-12-16 10:20:31 -07:00
|
|
|
> See also: `whereis`, `whatis`, `type`.
|
2025-03-14 21:59:59 -06:00
|
|
|
> More information: <https://manned.org/which>.
|
|
|
|
|
|
|
|
|
|
- Search the PATH environment variable and display the location of any matching executables:
|
|
|
|
|
|
|
|
|
|
`which {{executable}}`
|
|
|
|
|
|
|
|
|
|
- If there are multiple executables which match, display all:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`which {{[-a|--all]}} {{executable}}`
|