type
The type command is a shell builtin used to determine how a command name is interpreted.
Basic Usage
Show All Matches in PATH
Show all command locations
By default, type shows the first match.
To display all matches:
Check Multiple Commands
Verify if Command Is Builtin Only
If output contains:
- cd is a shell builtin
Then the command is implemented internally by the shell and is not an external binary.
If instead you see something like:
- ls is /bin/ls
Then it is an external executable found in your $PATH.
If it shows:
- ll is aliased to
ls -l
Then it is an alias.