Linux Operating System Question:
Download Questions PDF

You suspect that you have two commands with the same name as the command is not producing the expected results. What command can you use to determine the location of the command being run?

Answer:

which

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

Download Linux OS Interview Questions And Answers PDF

Previous QuestionNext Question
You routinely compress old log files. You now need to examine a log from two months ago. In order to view its contents without first having to decompress it, use the _________ utility in LinuxYou locate a command in the /bin directory but do not know what it does. What command can you use to determine its purpose