which: Get The Location of A Command
which | |
---|---|
Category | Command Line Program |
Part Of | GUN Core Utilities |
Classification | Tier 1 |
Official Documentation | GNU which |
1 Description
The which
command will output the fully qualified path to the command.
2 Examples
2.1 Get Program Location
In the example below we use the which
program to find out the location of the program systemctl.
user-1@vm:~$ which systemctl
/usr/bin/systemctl
user-1@vm:~$
This document was last updated: