Writes a description of the command type.
type CommandName ...
The standard output of the type command contains information about the specified command and identifies whether this is a shell built-in command, subroutine, alias, or keyword. The type command indicates how the specified command would be interpreted if used. Where applicable, the type command displays the related path name.
Because the type command must know the contents of the current shell environment, it is provided as a Korn shell or POSIX shell regular built-in command. If the type command is called in a separate command execution environment, the command may not produce accurate results. This would be the case in the following examples:
nohup type writerfind . -type f | xargs typeThe following exit values are returned:
| Item | Description | 
|---|---|
| 0 | Successful completion. | 
| >0 | An error occurred. | 
type cdcd is a shell builtintype findfind is /usr/bin/find| Item | Description | 
|---|---|
| /usr/bin/ksh | Contains the Korn shell type built-in command. |