Skip to main content

which

Show the full path of (shell) commands.

Cheatsheet

# Search the `PATH` environment variable and display
# the location of any matching executables
which <𝗘𝗫𝗘𝗖𝗨𝗧𝗔𝗕𝗟𝗘>

# If there are multiple executables which match, display all
which -a <𝗘𝗫𝗘𝗖𝗨𝗧𝗔𝗕𝗟𝗘>

References