which
Shows the full path of (shell) commands
Shows the full path of (shell) commands
To install this package, run one of the following:
Which takes one or more arguments. For each of its arguments it prints to stdout the full path of the executables that would have been executed when this argument had been entered at the shell prompt. It does this by searching for an executable or script in the directories listed in the environment variable PATH using the same algorithm as bash(1).
Summary
Shows the full path of (shell) commands
Last Updated
May 15, 2026 at 12:25
License
GPL-3.0-only
Supported Platforms
GitHub Repository
https://cgit.git.savannah.gnu.org/cgit/which.gitDocumentation
https://carlowood.github.io/which/