Locate a program file (UNIX)
which [-afLl] program...
The which utility searches the filesystem for each program specified. The user's PATH environment variable is used as the search path.
Display the full pathname (including the node) and long status for all versions of the ls utility found in PATH:
which -alf ls
Display the pathname for the which utility:
which which
ls, whence (builtin ksh command)