z/OS UNIX System Services User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Checking the search path used for a command

z/OS UNIX System Services User's Guide
SA23-2279-00

With aliases and search paths, it can be easy to lose track of what is executed when you enter a command. The which command can tell you which file is executed if you enter a command line that begins with a specific command. The where command can tell you where versions of the command are located. For example:
which kill
tells you:
kill: shell built-in command.
and the command:
where kill
tells you:
kill is a shell built-in
/bin/kill

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014