What does the ‘which’ command do?

unix
unix

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:

Leave a Reply

Your email address will not be published. Required fields are marked *