Name
type
Synopsis
[
type
options
]commands
Report absolute pathname of programs invoked for commands
and whether or not they are hashed.
Options
-
--
Consider all subsequent strings to be arguments, not options.
-
-a
,-all
Print all occurrences of
command
, not just that which would be invoked.-
-f
Suppress shell function lookup.
-
-p
,-path
Print the hashed value of
command
, which may differ from the first appearance ofcommand
in the PATH.-
-t
,-type
Determine and state if
command
is an alias, keyword, function, built-in, or file.-
-P
Force a
PATH
search for each name, even if -t would not return a value of “file” for the name.
Example
$ type mv read
mv is /bin/mv
read is a shell built-in
Get Mac OS X Tiger in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.