From FreeBSDwiki
Revision as of 09:48, 22 May 2009 by Jimbo (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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).


 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

Windows command

The DOS command, TYPE, is comparable to the cat command in FreeBSD and other unixlike OSes.

Personal tools