Locate a program file (UNIX)
which [-aflL] program...
- -a
- Find all occurrences of program in PATH.
- -f
- Display the full QNX pathname.
- -l
- ("el") Display long format (as in ls -lL) for each
program found.
- -L
- Display long format (as in ls -l) for each
program found, displaying link information if the file is a symlink.
The which utility searches the filesystem for each
program specified. The user's current PATH
environment variable is used as the search path.
Display full pathname (includes node) and long status for all versions
of the ls utility found in PATH:
which -alf ls
Display pathname for the which utility:
which which
- PATH
- A colon-separated list of directories to search for QNX
executables.
- 0
- All input files were searched successfully.
- >0
- An error occurred.
sh