Update cheatsheets

This commit is contained in:
ivuorinen
2024-04-29 00:13:53 +00:00
parent f9b2c23ea7
commit b58543b135
3 changed files with 32 additions and 2 deletions

View File

@@ -6,16 +6,21 @@ source: https://github.com/tldr-pages/tldr.git
# type
> Display the type of command the shell will execute.
> Note: all examples are not POSIX compliant.
> More information: <https://manned.org/type>.
- Display the type of a command:
`type {{command}}`
- Display all locations containing the specified executable:
- Display all locations containing the specified executable (works only in Bash/fish/Zsh shells):
`type -a {{command}}`
- Display the name of the disk file that would be executed:
- Display the name of the disk file that would be executed (works only in Bash/fish/Zsh shells):
`type -p {{command}}`
- Display the type of a specific command, alias/keyword/function/builtin/file (works only in Bash/fish shells):
`type -t {{command}}`