Easy Tutorial
❮ Linux Comm Ifconfig Linux Comm Efax ❯

Linux which Command

Linux Command Manual

The Linux which command is used to locate files.

The which command searches for files in the directories specified by the environment variable $PATH.

Syntax

which [files...]

Parameters:

Example

To view the absolute path of the "bash" command using the "which" command, enter the following command:

$ which bash

After executing the above command, the output is as follows:

/bin/bash                   # Absolute path of the bash executable

Linux Command Manual

❮ Linux Comm Ifconfig Linux Comm Efax ❯