WHICH(1) BSD WHICH(1)
NAME
which - locate a program file, including aliases and paths (csh only)
SYNOPSIS
which [ names ]
DESCRIPTION
which takes a list of names and looks for the files that would be
executed if these names were given as commands. It expands arguments
that are aliased, and searches for them along your path.
DIAGNOSTICS
which provides a diagnostic for names aliased to more than a single word,
or for executable files whose argument names are not found in the path.
BUGS
A C shell must execute which, since other shells do not know about
aliases. Refer to csh(1) for more information.
SEE ALSO
csh(1)