>_
linuxcommand.dev
Home
Roadmap
Contact
EN
Dark
>_
>_
linuxcommand.dev
Home
Roadmap
Contact
Legal Notice
Privacy Policy
Language
DE
EN
Design
Dark
Startseite
›
which
Shell
which
Locate a command in PATH.
Ubuntu
CentOS
Debian
Arch
SUSE
Slackware
Alpine
Fedora
Last updated:
2026-07-05
Report error
Syntax
Copy
$
which [OPTIONS] COMMAND...
Examples
Examples
$
which ls
Examples
$
which -a python
Typical use cases
Standard usage
which --help
Detailed Help
man which
Note
Shows the executable that the shell would run.
Export
Text
JSON
Script