>_ linuxcommand.dev
Startseite which
Shell

which

Shows the path to a command.

Ubuntu CentOS Debian Arch SUSE Slackware Alpine Fedora
Verified: 2025-09-09
Syntax
$which [OPTIONS] COMMAND...
Examples
$which ls
$which -a python
Typical use cases
?
Standard usage
which --help
Note Searches in PATH
Export