Commit | Line | Data |
---|---|---|
7400223d KM |
1 | .\" Copyright (c) 1980 Regents of the University of California. |
2 | .\" All rights reserved. The Berkeley software License Agreement | |
3 | .\" specifies the terms and conditions for redistribution. | |
4 | .\" | |
b896fc7a | 5 | .\" @(#)man.1 6.1 (Berkeley) %G% |
7400223d | 6 | .\" |
b896fc7a | 7 | .TH MAN 1 "" |
7400223d KM |
8 | .UC 4 |
9 | .SH NAME | |
10 | man \- find manual information by keywords; print out the manual | |
11 | .SH SYNOPSIS | |
12 | .br | |
13 | .B man | |
7400223d KM |
14 | [ |
15 | .B \- | |
16 | ] [ | |
17 | .B \-t | |
18 | ] [ | |
b896fc7a KM |
19 | .B \-M |
20 | .I path | |
21 | ] [ | |
7400223d KM |
22 | section |
23 | ] | |
24 | title ... | |
b896fc7a KM |
25 | .br |
26 | .B man | |
27 | .B \-k | |
28 | keyword ... | |
29 | .br | |
30 | .B man | |
31 | .B \-f | |
32 | file ... | |
7400223d KM |
33 | .SH DESCRIPTION |
34 | .I Man | |
35 | is a program which gives information from the programmers manual. | |
f81fb8aa | 36 | It can be asked for one line descriptions of commands specified by |
7400223d KM |
37 | name, or for all commands whose description contains any of a set of |
38 | keywords. It can also provide on-line access to the sections of the | |
39 | printed manual. | |
40 | .PP | |
41 | When given the option | |
42 | .B \-k | |
43 | and a set of keywords, | |
44 | .I man | |
45 | prints out a one line synopsis of each manual sections whose | |
b896fc7a | 46 | listing in the table of contents contains one of those keywords. |
7400223d KM |
47 | .PP |
48 | When given the option | |
49 | .B \-f | |
50 | and a list of file names, \fIman\fR attempts to locate manual | |
51 | sections related to those files, printing out the table of contents | |
52 | lines for those sections. | |
53 | .PP | |
54 | When neither | |
55 | .B \-k | |
56 | nor | |
57 | .B \-f | |
58 | is specified, | |
59 | .I man | |
60 | formats a specified set of manual pages. | |
61 | If a section specifier is given | |
62 | .I man | |
63 | looks in the that section of the manual for the given | |
64 | .I titles. | |
65 | .I Section | |
b896fc7a KM |
66 | is either |
67 | an Arabic section number (3 for instance), or one of the words ``new,'' | |
68 | ``local,'' ``old,'' or ``public.'' | |
69 | A section number may followed by | |
70 | a single letter classifier (for instance, 1g, | |
71 | indicating a graphics program in section 1). If | |
7400223d KM |
72 | .I section |
73 | is omitted, | |
74 | .I man | |
75 | searches all sections of the manual, giving preference to commands | |
76 | over subroutines in system libraries, and printing the first section | |
77 | it finds, if any. | |
78 | .PP | |
79 | If the standard output is a teletype, or if the flag | |
80 | .B \- | |
f81fb8aa | 81 | is given, |
7400223d KM |
82 | .I man |
83 | pipes its output through | |
b896fc7a | 84 | .IR more (1) |
7400223d KM |
85 | with the option |
86 | .B \-s | |
b896fc7a KM |
87 | to crush out useless blank lines |
88 | and to stop after each page on the screen. | |
7400223d KM |
89 | Hit a space to continue, |
90 | a control-D to scroll 11 more lines when the output stops. | |
91 | .PP | |
92 | The | |
93 | .B \-t | |
94 | flag causes | |
95 | .I man | |
96 | to arrange for the specified section to be | |
97 | .I troff'ed | |
98 | to a suitable raster output device; see | |
99 | .IR vtroff (1). | |
b896fc7a KM |
100 | .PP |
101 | Normally | |
102 | .I man | |
103 | checks in a standard location for manual | |
104 | information (/usr/man). This can be changed by supplying a search | |
105 | path (a la the shell) with the | |
106 | .B \-M | |
107 | flag. The search path is a colon (`:') separated list | |
108 | of directories in which manual subdirectories may be found; | |
109 | e.g. ``/usr/local:/usr/man''. If a search path is supplied | |
110 | with the | |
111 | .B \-k | |
112 | or | |
113 | .B \-f | |
114 | options, it must be specified first. | |
7400223d | 115 | .SH FILES |
b896fc7a KM |
116 | .nf |
117 | .ta \w'/usr/man/man?/* 'u | |
118 | /usr/man standard manual area | |
119 | /usr/man/man?/* directories containing source for manuals | |
120 | /usr/man/cat?/* directories containing preformatted pages | |
121 | /usr/man/whatis keyword database | |
122 | .fi | |
7400223d | 123 | .SH SEE\ ALSO |
b896fc7a | 124 | apropos(1), more(1), whereis(1), catman(8) |
7400223d KM |
125 | .SH BUGS |
126 | The manual is supposed to be reproducible either on the phototypesetter | |
127 | or on a typewriter. | |
128 | However, on a typewriter some information is necessarily lost. |