Difference between revisions of "Type"
From Linuxintro
imported>ThorstenStaerk (Created page with "Type is a command to find out the type of a command. A command can have many types, e.g. * a shell builtin * an alias * an executable file As an example for the ...") |
imported>ThorstenStaerk |
||
Line 1: | Line 1: | ||
[[Type]] is a [[command]] to find out the type of a [[command]]. A command can have many types, e.g. | [[Type]] is a [[command]] to find out the type of a [[command]]. A command can have many types, e.g. | ||
− | * a [ | + | * a [http://en.wikipedia.org/wiki/Shell_builtin shell builtin] |
* an alias | * an alias | ||
* an executable file | * an executable file |
Latest revision as of 21:59, 25 January 2012
Type is a command to find out the type of a command. A command can have many types, e.g.
- a shell builtin
- an alias
- an executable file
As an example for the command type, open a console and enter:
tweedleburg:~ # type alias alias is a shell builtin tweedleburg:~ # type which which is hashed (/usr/bin/which) tweedleburg:~ # type ls ls is aliased to `ls $LS_OPTIONS' tweedleburg:~ # type type type is a shell builtin