type
Display the type of command the shell will execute. Note: All examples are not POSIX compliant. See also:
whereis,which. More information: https://www.gnu.org/software/bash/manual/bash.html#index-type.
- Display the type of a command:
type
- Display all locations containing the specified executable (works only in Bash/fish/Zsh shells):
type -a
- Display the name of the disk file that would be executed (works only in Bash/fish/Zsh shells):
type -p
- Display the type of a specific command, alias/keyword/function/builtin/file (works only in Bash/fish shells):
type -t
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
