Command Line Interface (CLI)
which
Displays the path to a command.
Ubuntu
CentOS
Debian
Arch
SUSE
Slackware
Alpine
Fedora
Verified: 2025-09-09
Syntax
$which [OPTIONEN] BEFEHL...
Examples
$which ls
$which -a python
Typical use cases
?
Standard usage
which --help
Note
Search in PATH
Export