type - Find type of command

Synopsis

type [ -apt ] name ...

Description

The type utility displays the type of each specified name. The name can be an alias, function, special shell built-in, shell built-in, reserved word, or file.

Options

-a
Show all uses for name.
-p
Do not check to see if name is a reserved word, a built-in utility, an alias, or a function.
-t
Display a one word description for the type of name.

Operands

Each name is a utility in the current environment.

Exit status

  • 0 when every name is found
  • >0 when unsuccessful