What does the ‘which’ command do?


The ‘which’ command is great for finding where a program that exists in the user’s path is located.

To use it, type the following in a terminal:

What prints out on the next line is the first location found where that program is installed.

There are options available, see below: