Find out the location of the command being run

You suspect that you have two commands with the similar name as the command is not generating the expected results. What command can you employ to find out the location of the command being run?

E

Expert

Verified

“which“ command is used for this purpose.

The which command searches your path till it finds a command which matches the command you are looking for and displays its full path in Linux OS.

   Related Questions in Science

2015 ┬ęTutorsGlobe All rights reserved. TutorsGlobe Rated 4.8/5 based on 34139 reviews.