type(1)type(1)NAMEtype - write a description of command typeSYNOPSIStype name...
DESCRIPTION
The type utility indicates how each argument would be interpreted if used
as a command name.
OPERANDS
The following operand is supported:
name A name to be interpreted.
ENVIRONMENT VARIABLES
The following environment variables affect the execution of type:
PATH Determine the location of name, as described in the XBD
specification, Environment Variables.
STDOUT
The standard output of type contains information about each operand in an
unspecified format. The information provided typically identifies the
operand as a shell built-in, function, alias or keyword, and where
applicable, may display the operand's pathname.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
>0 An error occurred.
APPLICATION USAGE
Since type must be aware of the contents of the current shell execution
environment (such as the lists of commands, functions and built-ins
processed by hash), it is always provided as a shell regular built-in.
If it is called in a separate utility execution environment, such as one
of the following:
nohup type writer
find . -type f | xargs type
it might not produce accurate results.
SEE ALSOsh(1), command(1).
Page 1