Skip to content

Which command purpose linux

Question

What is the purpose of the "which" command in the command line?

Answer

The "which" command is used to locate the executable file associated with a given command in the system's PATH, helping users identify where a command is installed.