Go2Linux | Linux Operating System

A site dedicated to: Linux Operating System

which - Linux command line, displays the path where you can find a command

Date: 2007-06-15 00:00:00 -0400

Which

This is a command that helps your localize the path where any command is, if it is located in the PATH variable of the user running which command.

Usage

which command-list

Options

-a
Displays all the paths found and not just the first one
--show-dot
Displays the ./ instead of the absolute pathname

Exit Status

   0      if all specified commands are found and executable

   1      if one or more specified commands is  nonexistent  or  not  exe?
          cutable

   2      if an invalid option is specified

If you liked this article please share it.

powered by TinyLetter

If you want to contact me in any other way, please use the contact page.