which
- There is also the built-in
whichcommand
# Find where is command is located. First location in PATH
which "cd"
# Get all the locations of a given executable
which -a "cd"
which command# Find where is command is located. First location in PATH
which "cd"
# Get all the locations of a given executable
which -a "cd"