which - locate a program file including aliases and path (csh only)
which [-a] [-f] [name...]
Which takes a list of names and looks for the files which would be
executed had these names been given as commands. Each argument is
expanded if it is aliased, and searched for along the user's path.
Aliases are taken from the user's .cshrc file. The current value of path
is used. The -a option reports all instances rather than just the first
one. With the -f (fast) option, which ignores the .cshrc file.
~/.cshrc source of aliases
A diagnostic is given for names that are aliased to one or more words, or
if an executable file with the argument name was not found in the path.
Must be executed by a csh, since only csh's know about aliases. Only
aliases and paths from ~/.cshrc are used; importing from the current
environment, .login, or /etc/cshrc isn't attempted.
PPPPaaaaggggeeee 1111 [ Back ]