Install Which On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora And Raspbian

Install Which On A Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora And Raspbian

which

Locate a program in the user’s path.

Install which

  • Debian apt-get install which Click to copy
  • Ubuntu apt-get install which Click to copy
  • Alpine OS apk add which Click to copy
  • Arch Linux pacman -S which Click to copy
  • Kali Linux apt-get install which Click to copy
  • CentOS yum install which Click to copy
  • Fedora dnf install which Click to copy
  • Raspbian apt-get install which Click to copy

Locate a program in the user's path.

How to use which?

Below are few example commands for which that you can use in the terminal.

Search the PATH environment variable and display the location of any matching executables:
which executableClick to copy
If there are multiple executables which match, display all:
which -a executableClick to copy
Install the latest version of which in Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora and Raspbian from terminal. To install the which just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of which from the respository and install it in your computer/server.