PATHOF(1) COMMAND REFERENCE PATHOF(1)
NAME
pathof - print the path of a command
SYNOPSIS
pathof [ -a ] [ -s ] command ...
DESCRIPTION
For each command name given, pathof searches all directories
named in the environment variable $PATH for an executable
file by that name. If such a file is found, its pathname is
written to standard out. Otherwise an error message is
written to standard error. If the -s option is used, no
messages are written; only an exit status is returned.
OPTIONS
-a All paths for that command are found rather than just
the one that would currently be executed.
-s No messages are written; only an exit status is
returned.
EXAMPLES
Pathof is useful in finding what version of a program you
are executing.
pathof a.out
Finding whether a program exists by a particular name:
if pathof -s a.out; then...
Editing shell scripts:
vi `pathof nohup`
VARIABLES
PATH The user's execution search path.
RETURN VALUE
[NO_ERRS] Command completed without error.
[1] At least one of the commands specified was
not found.
Printed 10/17/86 1
PATHOF(1) COMMAND REFERENCE PATHOF(1)
[USAGE] Incorrect command line syntax. Execution
terminated.
SEE ALSO
csh(1csh), sh(1sh), type(1sh), which(1csh), which(1sh).
Printed 10/17/86 2
%%index%%
na:72,72;
sy:144,170;
de:314,519;
op:833,266;
ex:1099,368;
va:1467,119;
rv:1586,227;1957,94;
se:2051,231;
%%index%%000000000139