Which

From TWUUG

The which command is used to quickly locate the executable files for programs, the syntax is "which {program name}". As an example lets say you are looking for the location of the firefox executable, type "which firefox", it will return the location of the executable as shown below.

user@linux:/$ which firefox
/usr/bin/firefox
Personal tools