WHICH(1,C) AIX Commands Reference WHICH(1,C)
-------------------------------------------------------------------------------
which
PURPOSE
Locates an executable program using "path."
SYNTAX
which --- file ---|
^ |
+--------+
DESCRIPTION
Each argument is expanded if it is aliased, and the which command follows the
user's path to locate the first user executable program(s) matching the given
file(s). If hidden directories are encountered, they are displayed.
Note: If a given file is not found, which exits silently.
EXAMPLES
With PATH = :/bin:/usr/bin:/usr/ucb, the command:
which login who which
produces:
no login in . /bin /usr/bin /usr/ucb
/bin/who
/usr/ucb/which
FILES
$HOME/.cshrc
RELATED INFORMATION
See the following command: "csh."
Processed November 8, 1990 WHICH(1,C) 1