What is the usage of the “where” command in Linux?

In Linux, there is no ‘where’ command. If you are looking for the path of a command, you can use the ‘which’ command instead.

To find the path of a specific command, you can enter the following command in the terminal:

which command_name

This will return the path of the command, for example:

$ which ls
/bin/ls

This way, you will be able to know the actual path of the command in the system.

Leave a Reply 0

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