Type

From Linuxintro
Revision as of 09:35, 11 June 2011 by 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 ...")
(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