Which

From TWUUG

Revision as of 03:41, 10 February 2008 by Mfillpot (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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