Type
From FreeBSDwiki
(Difference between revisions)
Ninereasons (Talk | contribs) (type under sh,bash,zsh / c shell equivalent (where)) |
Ninereasons (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | The '''type''' builtin shell command under some | + | The '''type''' builtin shell command under some [[shell]]s ([[sh]], [[bash]], and [[zsh]]), returns information about a single ''word''. This command is ''not'' built into the [[C shell]], which is the default in FreeBSD (see [[which]] and [[where]]). |
==Examples== | ==Examples== |
Revision as of 11:33, 8 June 2006
The type builtin shell command under some shells (sh, bash, and zsh), returns information about a single word. This command is not built into the C shell, which is the default in FreeBSD (see which and where).
Examples
sh$ type type type is a shell builtin
bash$ type -a lynx lynx is aliased to `lynx -use_mouse' lynx is /usr/local/bin/lynx
C shell equivalent
tcsh> where lynx lynx is aliased to lynx -use_mouse /usr/local/bin/lynx
Windows command
The DOS command, type, is comparable to the cat command in FreeBSD and other unixlike OSes.