[9] | 1 | .TH MAN 1
|
---|
| 2 | .SH NAME
|
---|
| 3 | man \- display online manual pages
|
---|
| 4 | .SH SYNOPSIS
|
---|
| 5 | .B man
|
---|
| 6 | .RB [ \-antkfq ]
|
---|
| 7 | .RB [ \-M
|
---|
| 8 | .IR path ]
|
---|
| 9 | .RB [ \-s
|
---|
| 10 | .IR section ]
|
---|
| 11 | .IR title " ..."
|
---|
| 12 | .SH DESCRIPTION
|
---|
| 13 | .B Man
|
---|
| 14 | displays the online manual pages for the specified titles in the specified
|
---|
| 15 | sections. The sections are as follows:
|
---|
| 16 | .PP
|
---|
| 17 | .TP
|
---|
| 18 | .B 1
|
---|
| 19 | User Commands
|
---|
| 20 | .br
|
---|
| 21 | Generic commands such as
|
---|
| 22 | .BR ls ,
|
---|
| 23 | .BR cp ,
|
---|
| 24 | .BR grep .
|
---|
| 25 | .TP
|
---|
| 26 | .B 2
|
---|
| 27 | System Calls
|
---|
| 28 | .br
|
---|
| 29 | Low level routines that directly interface with the kernel.
|
---|
| 30 | .TP
|
---|
| 31 | .B 3
|
---|
| 32 | Library Routines
|
---|
| 33 | .br
|
---|
| 34 | Higher level C language subroutines.
|
---|
| 35 | .TP
|
---|
| 36 | .B 4
|
---|
| 37 | Device Files
|
---|
| 38 | .br
|
---|
| 39 | Describes devices in
|
---|
| 40 | .BR /dev .
|
---|
| 41 | .TP
|
---|
| 42 | .B 5
|
---|
| 43 | File Formats
|
---|
| 44 | .br
|
---|
| 45 | Formats of files handled by various utilities and subroutines.
|
---|
| 46 | .TP
|
---|
| 47 | .B 6
|
---|
| 48 | Games
|
---|
| 49 | .br
|
---|
| 50 | It's not \s-2UNIX\s+2 without an adventure game.
|
---|
| 51 | .TP
|
---|
| 52 | .B 7
|
---|
| 53 | Miscellaneous
|
---|
| 54 | .br
|
---|
| 55 | Macro packages, miscellaneous tidbits.
|
---|
| 56 | .TP
|
---|
| 57 | .B 8
|
---|
| 58 | System Utilities
|
---|
| 59 | .br
|
---|
| 60 | Commands for the System Administrator.
|
---|
| 61 | .TP
|
---|
| 62 | .B 9
|
---|
| 63 | Documents
|
---|
| 64 | .br
|
---|
| 65 | Larger manuals explaining some commands in more detail.
|
---|
| 66 | .PP
|
---|
| 67 | (If you are new to MINIX 3 then try
|
---|
| 68 | .BR "man hier" ,
|
---|
| 69 | it will show you around the file system and give you many pointers to other
|
---|
| 70 | manual pages.)
|
---|
| 71 | .PP
|
---|
| 72 | By default,
|
---|
| 73 | .B man
|
---|
| 74 | will try the following files in a manual page directory for the command
|
---|
| 75 | .BR "man \-s 1 ls" :
|
---|
| 76 | .PP
|
---|
| 77 | .RS
|
---|
| 78 | .ft B
|
---|
| 79 | .nf
|
---|
| 80 | cat1/ls.1
|
---|
| 81 | cat1/ls.1.Z
|
---|
| 82 | man1/ls.1
|
---|
| 83 | man1/ls.1.Z
|
---|
| 84 | .fi
|
---|
| 85 | .ft P
|
---|
| 86 | .RE
|
---|
| 87 | .PP
|
---|
| 88 | Files in the man[1\-8] directories are formatted with
|
---|
| 89 | .BR "nroff \-man" .
|
---|
| 90 | Those in man9 are formatted with
|
---|
| 91 | .BR "nroff \-mnx" .
|
---|
| 92 | Files in the cat? directories are preformatted. Files with names ending in
|
---|
| 93 | .B .Z
|
---|
| 94 | are decompressed first with
|
---|
| 95 | .B zcat
|
---|
| 96 | (see
|
---|
| 97 | .BR compress (1)).
|
---|
| 98 | The end result is presented to the user using a pager if displaying on
|
---|
| 99 | the screen.
|
---|
| 100 | .PP
|
---|
| 101 | For each manual page directory in its search path,
|
---|
| 102 | .B man
|
---|
| 103 | will first try all the subdirectories of the manual page directory for
|
---|
| 104 | the files above, and then the directory itself. The directory
|
---|
| 105 | .B /usr/man
|
---|
| 106 | contains the standard manual pages, with manual pages for optional
|
---|
| 107 | packages installed in a subdirectory of /usr/man, with the same
|
---|
| 108 | structure as /usr/man. The directory
|
---|
| 109 | .B /usr/local/man
|
---|
| 110 | contains manual pages for locally added software. By default
|
---|
| 111 | /usr/local/man is searched first, then /usr/man.
|
---|
| 112 | .PP
|
---|
| 113 | A title is not simply used as a filename, because several titles may
|
---|
| 114 | refer to the same manual page. Each manual page directory contains a
|
---|
| 115 | database of titles in the
|
---|
| 116 | .BR whatis (5)
|
---|
| 117 | file that is created by
|
---|
| 118 | .BR makewhatis (1)
|
---|
| 119 | from the NAME sections of all the manual pages. A title is searched in
|
---|
| 120 | this database and the first title on a whatis line is used as a filename.
|
---|
| 121 | .SH OPTIONS
|
---|
| 122 | The options may be interspersed with the titles to search, and take effect
|
---|
| 123 | for the titles after them.
|
---|
| 124 | .TP
|
---|
| 125 | .B \-a
|
---|
| 126 | Show all the manual pages or one line descriptions with the given title in
|
---|
| 127 | all the specified sections in all the manual directories in the search path.
|
---|
| 128 | Normally only the first page found is shown.
|
---|
| 129 | .TP
|
---|
| 130 | .B \-n
|
---|
| 131 | Use
|
---|
| 132 | .B nroff \-man
|
---|
| 133 | to format manual pages (default).
|
---|
| 134 | .TP
|
---|
| 135 | .B \-t
|
---|
| 136 | Use
|
---|
| 137 | .B troff \-man
|
---|
| 138 | to format manual pages.
|
---|
| 139 | .TP
|
---|
| 140 | .B \-f
|
---|
| 141 | Use
|
---|
| 142 | .BR whatis (1)
|
---|
| 143 | to show a one line description of the title from the
|
---|
| 144 | .BR whatis (5)
|
---|
| 145 | file.
|
---|
| 146 | .TP
|
---|
| 147 | .B \-k
|
---|
| 148 | Use
|
---|
| 149 | .BR apropos (1)
|
---|
| 150 | to show all the one line descriptions of the title anywhere in the
|
---|
| 151 | .BR whatis (5)
|
---|
| 152 | files (implies
|
---|
| 153 | .BR \-a ).
|
---|
| 154 | .TP
|
---|
| 155 | .B \-q
|
---|
| 156 | Quietly check if all requested manual pages exist. No output, no errors,
|
---|
| 157 | just an exit code.
|
---|
| 158 | .TP
|
---|
| 159 | .BI \-M " path"
|
---|
| 160 | Use
|
---|
| 161 | .I path
|
---|
| 162 | as the search path for manual directories.
|
---|
| 163 | .TP
|
---|
| 164 | .BI \-s " section"
|
---|
| 165 | .I Section
|
---|
| 166 | is the section number the page is to be found in, or a comma separated
|
---|
| 167 | list of sections to use. Normally all sections are searched. The
|
---|
| 168 | search is always in numerical order no matter what your section list looks
|
---|
| 169 | like. A single digit is treated as a section number without the
|
---|
| 170 | .B \-s
|
---|
| 171 | for compatibility with BSD-style
|
---|
| 172 | .B man
|
---|
| 173 | commands.
|
---|
| 174 | .SH ENVIRONMENT
|
---|
| 175 | .TP 15n
|
---|
| 176 | .B MANPATH
|
---|
| 177 | This is a colon separated list of directories to search for manual
|
---|
| 178 | pages, by default
|
---|
| 179 | .BR /usr/local/man:/usr/man .
|
---|
| 180 | .TP
|
---|
| 181 | .B PAGER
|
---|
| 182 | The program to use to display the manual page or one line descriptions on
|
---|
| 183 | the screen page by page. By default
|
---|
| 184 | .BR more .
|
---|
| 185 | .SH FILES
|
---|
| 186 | .TP 25n
|
---|
| 187 | /usr/man/whatis
|
---|
| 188 | One of the
|
---|
| 189 | .BR whatis (5)
|
---|
| 190 | databases.
|
---|
| 191 | .SH "SEE ALSO"
|
---|
| 192 | .BR nroff (1),
|
---|
| 193 | .BR troff (1),
|
---|
| 194 | .BR more (1),
|
---|
| 195 | .BR whatis (1),
|
---|
| 196 | .BR makewhatis (1),
|
---|
| 197 | .BR catman (1),
|
---|
| 198 | .BR whatis (5),
|
---|
| 199 | .BR man (7).
|
---|
| 200 | .SH AUTHOR
|
---|
| 201 | Kees J. Bot (kjb@cs.vu.nl)
|
---|