1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-08 02:26:03 +02:00
tldr/pages/common/type.md
Managor 5305776d45
*: capitalize the first letter after "Note:" (#16226)
Co-authored-by: Machiavelli <145562237+MachiavelliII@users.noreply.github.com>
2025-05-04 05:15:17 +03:00

626 B

type

Display the type of command the shell will execute. Note: All examples are not POSIX compliant. More information: https://www.gnu.org/software/bash/manual/bash.html#index-type.

  • Display the type of a command:

type {{command}}

  • 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 (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}}