Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
95cc093
commit 134df43
Showing
1 changed file
with
7 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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}}` |