| WHICH(1) | General Commands Manual | WHICH(1) |
which — locate
executable within PATH
which |
[-as] name... |
The which utility scans
PATH for each given executable
name, unless it contains a slash where then
name is simply printed out.
which shall not be used when the standard
sh(1) builtin command
-v name can be used
instead.
The which utility exits 0 on
success, and >0 if an error occurs.
A which command first appeared in
3.0BSD.
The -a option first appeared in
OpenBSD 2.3.
Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
| October 12, 2024 | Linux |