How to Find Where a Command Is Installed in Linux (which)
which shows the full path to the executable that would run when you type a given command name.
Published October 2, 2026
which shows the full path to the executable that would run when you type a given command name.
Key points
- Useful for confirming exactly which version of a tool (e.g. python or node) is actually on your PATH
- Returns nothing (or an error) if the command isn't found anywhere in your PATH
- type is a similar, shell-builtin alternative that also reports aliases and shell functions, not just executables
Example
which node