pavement

Type

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
 
m (Reverted edits by OuvarDronv (Talk); changed back to last version by Jimbo)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Under FreeBSD and other unixlike OSes, the equivalent command is '''cat'''.  See also [[zcat]] and [[bzcat]] for use with compressed archives.
+
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]]).
  
[[Category:Windows Equivalents]]
+
==Examples==
 +
<pre>
 +
sh$ type type
 +
type is a shell builtin
 +
 
 +
</pre>
 +
 
 +
<pre>
 +
bash$ type -a lynx
 +
lynx is aliased to `lynx -use_mouse'
 +
lynx is /usr/local/bin/lynx
 +
 +
</pre>
 +
 
 +
==C shell equivalent==
 +
<pre>
 +
tcsh> where lynx
 +
lynx is aliased to lynx -use_mouse
 +
/usr/local/bin/lynx
 +
</pre>
 +
 
 +
==Windows command==
 +
The DOS command, '''TYPE''', is comparable to the [[cat]] command in FreeBSD and other unixlike OSes.
 +
[[Category:System Commands]] [[Category:Linux Equivalents]] [[Category:Windows Equivalents]]

Latest revision as of 09:48, 22 May 2009

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

[edit] 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
 

[edit] C shell equivalent

 tcsh> where lynx
lynx is aliased to lynx -use_mouse
/usr/local/bin/lynx

[edit] Windows command

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

Personal tools