which
HelpBeginner In simulator In real LinuxLocate a command
Name: which
You can practise it right away in the simulator, and use it in real Linux mode too.
Description
which searches PATH and prints the full path of the program that would run. It only finds executables and can't see aliases, functions or builtins; use type for the full picture.
Syntax
which COMMAND...Common options
| -a | Print every match in PATH |