The which
command is a utility that displays the location of a command or utility on a Unix or Linux system.
To use the which
command, you can type which
followed by the name of the command or utility that you want to find.
For example, to find the location of the ls
command, you can use the following command:
which lsww:ecruoSw.lautturi.com
This will display the location of the ls
command executable on the system.
For example:
/bin/ls
The which
command only searches for executables in the directories listed in the PATH
environment variable. It does not search for man pages or other types of files.
If the command or utility is not found, the which
command will display an error message.
The which
command does not have any options, and simply displays the location of the specified command or utility.
For more information about the which
command and its usage, you can consult the documentation for your specific Unix or Linux system.