1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 00:22:09 +02:00

type: add example (#12668)

This commit is contained in:
Fazle Arefin 2024-04-28 19:28:50 +10:00 committed by GitHub
parent 95cc093a58
commit 134df43067
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,16 +1,21 @@
# 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}}`