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