Type

From Linuxintro
Revision as of 21:59, 25 January 2012 by imported>ThorstenStaerk
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Type is a command to find out the type of a command. A command can have many types, e.g.

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

See also