type Linux Commands
What is Linux type Command?
Explanation
type COMMAND:type command is used to display the type and path of a particular command.
SYNTAX :
type [-atp] [name ...]
OPTIONS:
-a |
display all locations containing an executable. |
-f |
suppress shell function lookup.
|
-P |
force a PATH search for each NAME |
-t |
output a single word which is one of alias, keyword,function,builtin, file. |
EXAMPLE:
-
type pkill
Output:
pkill is hashed (/usr/bin/pkill)
In the above example, the type cmd displays the type and path for the command 'pkill'.