pavement

Whereis

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
m (Reverted edits by 147.8.104.142 (Talk); changed back to last version by Dave)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Very much like [[where]] except that it will search for any program and show you where they all are, including manpages:
+
Very much like [[where]] except that it will search for any program and show you not only where the program itself is, but also where any source code and/or [[man]] pages related to that program are in the standard [[path]]:
  
  samizdata# where ls
+
  samizdata#''' whereis time'''
/bin/ls
+
  time: /usr/bin/time /usr/share/man/man1/time.1.gz /usr/src/usr.bin/time
samizdata# whereis ls
+
samizdata#
  ls: /bin/ls /usr/share/man/man1/ls.1.gz
+
  
See also: [[where]]
+
See also: [[where]], [[which]], [[whatis]], [[apropos]]
  
[Category: System Commands]
+
[[Category: System Commands]]

Latest revision as of 12:37, 10 November 2007

Very much like where except that it will search for any program and show you not only where the program itself is, but also where any source code and/or man pages related to that program are in the standard path:

samizdata# whereis time
time: /usr/bin/time /usr/share/man/man1/time.1.gz /usr/src/usr.bin/time
samizdata#

See also: where, which, whatis, apropos

Personal tools