which
Description
Section titled “Description”Lists the location of an executable in the computer’s file system. If an executable is not installed on the computer and its parent directory is not part of the system’s $PATH, which will return error.
# Returns all /usr/bin/bash, exit code(0) i.e successwhich -a bash
# Multiple executables check, exit code(0) i.e successwhich cat tail
# Returns Nothing, exit code(1) i.e failurewhich nonExistingApplicationInPathOptions
Section titled “Options”| Options | Description |
|---|---|
| -a | list all available executable/application in PATH |
Installation
Section titled “Installation”NA