type: Describe a commandu

Describe a command, for each name, indicate how it would be interpreted
if used as
a command name.
Syntax
type [-atp] [name ...]

Options
If the `-t? option is used, type prints a single word which is one of:
`alias? (shell alias)
`function? (shell function)
`builtin? (shell builtin)
`file? (disk file)
`keyword? (shell reserved word)

If the `-p? option is used, type either returns the name of the disk file that
would be executed, or nothing if `-t? would not return `file?.

If the `-a? option is used, type returns all of the places that contain an
executable named file. This includes aliases and functions, if and only if the
`-p? option is not also used.
The return status is zero if any of the names are found, non-zero otherwise.
`type? is a BASH builtin command.
"In his errors a man is true to type. Observe the errors and you will
know the man" - Analects
Tags
Comments
Write the first comment
Leave a trace
Name *
Email *
Website
Anti SPAM * Code (1 + 6) =
Leave me a comment *
 
All comments are subject to editorial review
Post being viewed right now
Item date: 10.04.2009
Views: 1329
Item date: 04.02.2009
Views: 1205
Item date: 16.06.2009
Views: 1677
Item date: 08.03.2009
Views: 933
Item date: 16.06.2009
Views: 976
Item date: 09.03.2009
Views: 1141
Item date: 06.02.2009
Views: 1631
Item date: 02.01.2009
Views: 1909
Item date: 12.04.2009
Views: 2077
Item date: 30.10.2009
Views: 6668