Penguin
Annotated edit history of whereis(1) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 WHEREIS
2 !!!WHEREIS
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 OPTIONS
7 EXAMPLE
8 FILES
9 SEE ALSO
10 BUGS
11 ----
12 !!NAME
13
14
15 whereis - locate the binary, source, and manual page files for a command
16 !!SYNOPSIS
17
18
19 __whereis__ [[ __-bmsu__ ] [[ __-BMS__
20 ''directory''... __-f__ ] ''filename''
21 ...
22 !!DESCRIPTION
23
24
25 __whereis__ locates source/binary and manuals sections
26 for specified files. The supplied names are first stripped
27 of leading pathname components and any (single) trailing
28 extension of the form __.__''ext,'' for example,
29 __.c__. Prefixes of __s.__ resulting from use of
30 source code control are also dealt with. __whereis__ then
31 attempts to locate the desired program in a list of standard
32 Linux places.
33 !!OPTIONS
34
35
36 __-b__
37
38
39 Search only for binaries.
40
41
42 __-m__
43
44
45 Search only for manual sections.
46
47
48 __-s__
49
50
51 Search only for sources.
52
53
54 __-u__
55
56
57 Search for unusual entries. A file is said to be unusual if
58 it does not have one entry of each requested type. Thus
59 `__whereis -m -u *__' asks for those files in the current
60 directory which have no documentation.
61
62
63 __-B__
64
65
66 Change or otherwise limit the places where __whereis__
67 searches for binaries.
68
69
70 __-M__
71
72
73 Change or otherwise limit the places where __whereis__
74 searches for manual sections.
75
76
77 __-S__
78
79
80 Change or otherwise limit the places where __whereis__
81 searches for sources.
82
83
84 __-f__
85
86
87 Terminate the last directory list and signals the start of
88 file names, and ''must'' be used when any of the
89 __-B__, __-M__, or __-S__ options are
90 used.
91 !!EXAMPLE
92
93
94 Find all files in __/usr/bin__ which are not documented
95 in __/usr/man/man1__ with source in
96 __/usr/src__:
97
98
99 __example% cd /usr/bin
100 example% whereis -u -M /usr/man/man1 -S /usr/src -f *
101 __
102 !!FILES
103
104
105 __/{bin,sbin,etc}__
106
107
108 __/usr/{lib,bin,old,new,local,games,include,etc,src,man,sbin,__
109
110
111 __X386,TeX,g++-include}__
112
113
114 __/usr/local/{X386,TeX,X11,include,lib,man,etc,bin,games,emacs}__
115 !!SEE ALSO
116
117
118 __chdir__(2V)
119 !!BUGS
120
121
122 Since __whereis__ uses __chdir__(2V) to run faster,
123 pathnames given with the __-M__, __-S__, or __-B__
124 must be full; that is, they must begin with a
125 `__/__'.
126
127
128 __whereis__ has a hard-coded path, so may not always find
129 what you're looking for.
130 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.