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

©TutorsGlobe All rights reserved 2022-2023.