builtin
Bash type -t — classify a command
Prints the kind of each resolved name, such as builtin, file, function, alias or keyword. Useful for distinguishing shell commands from executables.
Formal Syntax & Structure
bash syntaxbash
type -t name ...Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| name | string | Command name. |
Return Value
exit status
Zero if all names are found; nonzero otherwise.
Working Example
Example Snippetbash
type -t printfcommand -v printf