$ type
Describe how a command would be interpreted
DOCUMENTEDShell builtinsUbuntu 24.04 LTS baseline
Synopsis
type [-afptP] name [name ...]
What it does
- `type` is a Bash builtin that reports how each NAME would be interpreted as a command.
- It can distinguish aliases, functions, builtins, and executable files.
Examples
See how a command resolves
type lsShow whether a command is a builtin
type cdImportant details
These examples are intentionally conservative. Command behavior can still depend on filesystem state, permissions, locale, shell, installed package version, and other system configuration.
For exact option semantics, the linked authoritative documentation is the source of truth.