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:


  1. type pkill
    Output:
    pkill is hashed (/usr/bin/pkill)
  2. In the above example, the type cmd displays the type and path for the command 'pkill'.

Ask Questions

Ask Question