type - Tell how the shell interprets a name

Format

type name ...

Description

type identifies the nature of one or more names. Names can be shell reserved words, aliases, shell functions, built-in commands, or executable files. For executable files, the full path name is given.

Usage notes

type is a built-in shell command.

Localization

type uses the following localization environment variables:
  • LANG
  • LC_ALL
  • LC_MESSAGES
  • NLSPATH

Exit values

0
Successful completion.
2
Failure because of an incorrect command-line argument.

Messages

name is not found
type could not locate the specified name. Check that the name was specified properly and that you have the appropriate permissions.

Portability

POSIX.2, X/Open Portability Guide, UNIX systems.

Related information

alias, command, sh, whence