NAME 

type - indicate how a name would be interpreted if used as a command name

Synopsis 

type [OPTIONS] name [name ...]

Description 

With no options, indicate how each name would be interpreted if used as a command name.
*
-h or --help print this message
*
-a or --all print all of possible definitions of the specified names
*
-f or --no-functions suppresses function and builtin lookup
*
-t or --type print a string which is one of alias, keyword, function, builtin, or file if name is an alias, shell reserved word, function, builtin, or disk file, respectively
*
-p or --path either return the name of the disk file that would be executed if name were specified as a command name, or nothing if 'type -t name' would not return 'file'
*
-P or --force-path either return the name of the disk file that would be executed if name were specified as a command name, or nothing no file with the specified name could be found in the PATH

type returns a zero exit status if the specified command was found, otherwise the exit status is one.

Example 

type fg outputs the string 'fg is a shell builtin'.