BSD 4_3_Tahoe development
[unix-history] / usr / man / cat1 / whereis.0
CommitLineData
362b077f
C
1
2
3
4WHEREIS(1) UNIX Programmer's Manual WHEREIS(1)
5
6
7
8N\bNA\bAM\bME\bE
9 whereis - locate source, binary, and or manual for program
10
11S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
12 w\bwh\bhe\ber\bre\bei\bis\bs [ -\b-s\bsb\bbm\bm ] [ -\b-u\bu ] [ -\b-S\bSB\bBM\bM dir ... -\b-f\bf ] name ...
13
14D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
15 _\bW_\bh_\be_\br_\be_\bi_\bs locates source/binary and manuals sections for
16 specified files. The supplied names are first stripped of
17 leading pathname components and any (single) trailing exten-
18 sion of the form ``.ext'', e.g. ``.c''. Prefixes of ``s.''
19 resulting from use of source code control are also dealt
20 with. _\bW_\bh_\be_\br_\be_\bi_\bs then attempts to locate the desired program
21 in a list of standard places. If any of the -\b-b\bb,\b, -\b-s\bs or -\b-m\bm
22 flags are given then _\bw_\bh_\be_\br_\be_\bi_\bs searches only for binaries,
23 sources or manual sections respectively (or any two
24 thereof). The -\b-u\bu flag may be used to search for unusual
25 entries. A file is said to be unusual if it does not have
26 one entry of each requested type. Thus ``whereis -m -u *''
27 asks for those files in the current directory which have no
28 documentation.
29
30 Finally, the -\b-B\bB -\b-M\bM and -\b-S\bS flags may be used to change or
31 otherwise limit the places where _\bw_\bh_\be_\br_\be_\bi_\bs searches. The -\b-f\bf
32 file flags is used to terminate the last such directory list
33 and signal the start of file names.
34
35E\bEX\bXA\bAM\bMP\bPL\bLE\bE
36 The following finds all the files in /usr/bin which are not
37 documented in /usr/man/man1 with source in /usr/src/cmd:
38
39 cd /usr/ucb
40 whereis -u -M /usr/man/man1 -S /usr/src/cmd -f *
41
42F\bFI\bIL\bLE\bES\bS
43 /usr/src/*
44 /usr/{doc,man}/*
45 /lib, /etc, /usr/{lib,bin,ucb,old,new,local}
46
47B\bBU\bUG\bGS\bS
48 Since the program uses _\bc_\bh_\bd_\bi_\br(2) to run faster, pathnames
49 given with the -\b-M\bM -\b-S\bS and -\b-B\bB must be full; i.e. they must
50 begin with a ``/''.
51
52
53
54
55
56
57
58
59
60
61
62
63Printed 7/9/88 May 7, 1986 1
64
65
66