1*0c3983b2SBen Gras.\" $NetBSD: man.1,v 1.21 2009/10/07 08:30:31 cegger Exp $ 2*0c3983b2SBen Gras.\" 3*0c3983b2SBen Gras.\" Copyright (c) 1989, 1990, 1993 4*0c3983b2SBen Gras.\" The Regents of the University of California. All rights reserved. 5*0c3983b2SBen Gras.\" 6*0c3983b2SBen Gras.\" Redistribution and use in source and binary forms, with or without 7*0c3983b2SBen Gras.\" modification, are permitted provided that the following conditions 8*0c3983b2SBen Gras.\" are met: 9*0c3983b2SBen Gras.\" 1. Redistributions of source code must retain the above copyright 10*0c3983b2SBen Gras.\" notice, this list of conditions and the following disclaimer. 11*0c3983b2SBen Gras.\" 2. Redistributions in binary form must reproduce the above copyright 12*0c3983b2SBen Gras.\" notice, this list of conditions and the following disclaimer in the 13*0c3983b2SBen Gras.\" documentation and/or other materials provided with the distribution. 14*0c3983b2SBen Gras.\" 3. Neither the name of the University nor the names of its contributors 15*0c3983b2SBen Gras.\" may be used to endorse or promote products derived from this software 16*0c3983b2SBen Gras.\" without specific prior written permission. 17*0c3983b2SBen Gras.\" 18*0c3983b2SBen Gras.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 19*0c3983b2SBen Gras.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20*0c3983b2SBen Gras.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21*0c3983b2SBen Gras.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 22*0c3983b2SBen Gras.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23*0c3983b2SBen Gras.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24*0c3983b2SBen Gras.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25*0c3983b2SBen Gras.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26*0c3983b2SBen Gras.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27*0c3983b2SBen Gras.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28*0c3983b2SBen Gras.\" SUCH DAMAGE. 29*0c3983b2SBen Gras.\" 30*0c3983b2SBen Gras.\" @(#)man.1 8.2 (Berkeley) 1/2/94 31*0c3983b2SBen Gras.\" 32*0c3983b2SBen Gras.Dd October 6, 2009 33*0c3983b2SBen Gras.Dt MAN 1 34*0c3983b2SBen Gras.Os 35*0c3983b2SBen Gras.Sh NAME 36*0c3983b2SBen Gras.Nm man 37*0c3983b2SBen Gras.Nd display the on-line manual pages 38*0c3983b2SBen Gras.Pq aka Dq Em man pages 39*0c3983b2SBen Gras.Sh SYNOPSIS 40*0c3983b2SBen Gras.Nm 41*0c3983b2SBen Gras.Oo Fl acw Ns \&| Ns Fl h Oc 42*0c3983b2SBen Gras.Op Fl C Ar file 43*0c3983b2SBen Gras.Op Fl M Ar path 44*0c3983b2SBen Gras.Op Fl m Ar path 45*0c3983b2SBen Gras.Op Fl S Ar srch 46*0c3983b2SBen Gras.Oo 47*0c3983b2SBen Gras.Op Fl s 48*0c3983b2SBen Gras.Ar section 49*0c3983b2SBen Gras.Oc 50*0c3983b2SBen Gras.Ar name Ar ... 51*0c3983b2SBen Gras.Nm 52*0c3983b2SBen Gras.Op Fl k 53*0c3983b2SBen Gras.Op Fl C Ar file 54*0c3983b2SBen Gras.Op Fl M Ar path 55*0c3983b2SBen Gras.Op Fl m Ar path 56*0c3983b2SBen Gras.Ar keyword Ar ... 57*0c3983b2SBen Gras.Sh DESCRIPTION 58*0c3983b2SBen GrasThe 59*0c3983b2SBen Gras.Nm 60*0c3983b2SBen Grasutility displays the manual pages named on the command line. 61*0c3983b2SBen GrasIts options are as follows: 62*0c3983b2SBen Gras.Bl -tag -width indent 63*0c3983b2SBen Gras.It Fl a 64*0c3983b2SBen GrasDisplay all of the man pages for a specified 65*0c3983b2SBen Gras.Ar section 66*0c3983b2SBen Grasand 67*0c3983b2SBen Gras.Ar name 68*0c3983b2SBen Grascombination. 69*0c3983b2SBen Gras(Normally, only the first man page found is displayed.) 70*0c3983b2SBen Gras.It Fl C 71*0c3983b2SBen GrasUse the specified 72*0c3983b2SBen Gras.Ar file 73*0c3983b2SBen Grasinstead of the default configuration file. 74*0c3983b2SBen GrasThis permits users to configure their own man environment. 75*0c3983b2SBen GrasSee 76*0c3983b2SBen Gras.Xr man.conf 5 77*0c3983b2SBen Grasfor a description of the contents of this file. 78*0c3983b2SBen Gras.It Fl c 79*0c3983b2SBen GrasCopy the man page to the standard output instead of using 80*0c3983b2SBen Gras.Xr more 1 81*0c3983b2SBen Grasto paginate it. 82*0c3983b2SBen GrasThis is done by default if the standard output is not a terminal device. 83*0c3983b2SBen Gras.It Fl h 84*0c3983b2SBen GrasDisplay only the 85*0c3983b2SBen Gras.Dq Tn SYNOPSIS 86*0c3983b2SBen Graslines of the requested man pages. 87*0c3983b2SBen GrasFor commands, this is typically the command line usage information. 88*0c3983b2SBen GrasFor library functions, this usually contains the required include 89*0c3983b2SBen Grasfiles and function prototypes. 90*0c3983b2SBen Gras.It Fl k 91*0c3983b2SBen GrasDisplay the header lines for any man pages matching 92*0c3983b2SBen Gras.Ar keyword Ns Pq s , 93*0c3983b2SBen Grasin the same manner as 94*0c3983b2SBen Gras.Xr apropos 1 . 95*0c3983b2SBen Gras.It Fl M 96*0c3983b2SBen GrasOverride the list of standard directories which 97*0c3983b2SBen Gras.Nm 98*0c3983b2SBen Grassearches for man pages. 99*0c3983b2SBen GrasThe supplied 100*0c3983b2SBen Gras.Ar path 101*0c3983b2SBen Grasmust be a colon 102*0c3983b2SBen Gras.Pq Dq \&: 103*0c3983b2SBen Grasseparated list of directories. 104*0c3983b2SBen GrasThis search path may also be set using the environment variable 105*0c3983b2SBen Gras.Ev MANPATH . 106*0c3983b2SBen GrasThe subdirectories to be searched, and their search order, 107*0c3983b2SBen Grasis specified by the 108*0c3983b2SBen Gras.Dq _subdir 109*0c3983b2SBen Grasline in the 110*0c3983b2SBen Gras.Nm 111*0c3983b2SBen Grasconfiguration file. 112*0c3983b2SBen Gras.It Fl m 113*0c3983b2SBen GrasAugment the list of standard directories which 114*0c3983b2SBen Gras.Nm 115*0c3983b2SBen Grassearches for man pages. 116*0c3983b2SBen GrasThe supplied 117*0c3983b2SBen Gras.Ar path 118*0c3983b2SBen Grasmust be a colon 119*0c3983b2SBen Gras.Pq Dq \&: 120*0c3983b2SBen Grasseparated list of directories. 121*0c3983b2SBen GrasThese directories will be searched before the standard directories or 122*0c3983b2SBen Grasthe directories specified using the 123*0c3983b2SBen Gras.Fl M 124*0c3983b2SBen Grasoption or the 125*0c3983b2SBen Gras.Ev MANPATH 126*0c3983b2SBen Grasenvironment variable. 127*0c3983b2SBen GrasThe subdirectories to be searched, and their search order, 128*0c3983b2SBen Grasis specified by the 129*0c3983b2SBen Gras.Dq _subdir 130*0c3983b2SBen Grasline in the 131*0c3983b2SBen Gras.Nm 132*0c3983b2SBen Grasconfiguration file. 133*0c3983b2SBen Gras.It Fl s 134*0c3983b2SBen GrasRestrict the directories that 135*0c3983b2SBen Gras.Nm 136*0c3983b2SBen Graswill search to the specified section. 137*0c3983b2SBen GrasThe 138*0c3983b2SBen Gras.Nm 139*0c3983b2SBen Grasconfiguration file (see 140*0c3983b2SBen Gras.Xr man.conf 5 ) 141*0c3983b2SBen Grasspecifies the possible 142*0c3983b2SBen Gras.Ar section 143*0c3983b2SBen Grasvalues that are currently available. 144*0c3983b2SBen Gras.It Fl S 145*0c3983b2SBen GrasDisplay only man pages that have the specified string in the directory 146*0c3983b2SBen Graspart of their filenames. 147*0c3983b2SBen GrasThis allows the man page search process criteria to be 148*0c3983b2SBen Grasnarrowed without having to change the MANPATH or 149*0c3983b2SBen Gras.Dq _default 150*0c3983b2SBen Grasvariables. 151*0c3983b2SBen Gras.It Fl w 152*0c3983b2SBen GrasList the pathnames of the man pages which 153*0c3983b2SBen Gras.Nm 154*0c3983b2SBen Graswould display for the specified 155*0c3983b2SBen Gras.Ar section 156*0c3983b2SBen Grasand 157*0c3983b2SBen Gras.Ar name 158*0c3983b2SBen Grascombination. 159*0c3983b2SBen Gras.El 160*0c3983b2SBen Gras.Pp 161*0c3983b2SBen GrasIf the 162*0c3983b2SBen Gras.Ql Fl s 163*0c3983b2SBen Grasoption is not specified, 164*0c3983b2SBen Grasthere is more than one argument, 165*0c3983b2SBen Grasthe 166*0c3983b2SBen Gras.Ql Fl k 167*0c3983b2SBen Grasoption is not used, and the first argument is a valid section, then that 168*0c3983b2SBen Grasargument will be used as if specified by the 169*0c3983b2SBen Gras.Ql Fl s 170*0c3983b2SBen Grasoption. 171*0c3983b2SBen Gras.Pp 172*0c3983b2SBen GrasIf 173*0c3983b2SBen Gras.Ar name 174*0c3983b2SBen Grasis given with a full or relative path then 175*0c3983b2SBen Gras.Nm 176*0c3983b2SBen Grasinterprets it as a file specification, so that you can do 177*0c3983b2SBen Gras.Nm 178*0c3983b2SBen Gras.Cm ./foo.5 179*0c3983b2SBen Grasor even 180*0c3983b2SBen Gras.Nm 181*0c3983b2SBen Gras.Cm /cd/foo/bar.1.gz . 182*0c3983b2SBen Gras.Sh ENVIRONMENT 183*0c3983b2SBen Gras.Bl -tag -width MANPATHX 184*0c3983b2SBen Gras.It Ev MACHINE 185*0c3983b2SBen GrasAs some man pages are intended only for specific architectures, 186*0c3983b2SBen Gras.Nm 187*0c3983b2SBen Grassearches any subdirectories, 188*0c3983b2SBen Graswith the same name as the current architecture, 189*0c3983b2SBen Grasin every directory which it searches. 190*0c3983b2SBen GrasMachine specific areas are checked before general areas. 191*0c3983b2SBen GrasThe current machine type may be overridden by setting the environment 192*0c3983b2SBen Grasvariable 193*0c3983b2SBen Gras.Ev MACHINE 194*0c3983b2SBen Grasto the name of a specific architecture. 195*0c3983b2SBen Gras.It Ev MANPATH 196*0c3983b2SBen GrasThe standard search path used by 197*0c3983b2SBen Gras.Nm 198*0c3983b2SBen Grasmay be overridden by specifying a path in the 199*0c3983b2SBen Gras.Ev MANPATH 200*0c3983b2SBen Grasenvironment 201*0c3983b2SBen Grasvariable. 202*0c3983b2SBen GrasThe format of the path is a colon 203*0c3983b2SBen Gras.Pq Dq \&: 204*0c3983b2SBen Grasseparated list of directories. 205*0c3983b2SBen GrasThe subdirectories to be searched as well as their search order 206*0c3983b2SBen Grasis specified by the 207*0c3983b2SBen Gras.Dq _subdir 208*0c3983b2SBen Grasline in the 209*0c3983b2SBen Gras.Nm 210*0c3983b2SBen Grasconfiguration file. 211*0c3983b2SBen Gras.It Ev PAGER 212*0c3983b2SBen GrasThe pagination command used for writing the output. 213*0c3983b2SBen GrasIf the 214*0c3983b2SBen Gras.Ev PAGER 215*0c3983b2SBen Grasenvironment variable is null or not set, the standard pagination program 216*0c3983b2SBen Gras.Xr more 1 217*0c3983b2SBen Graswill be used. 218*0c3983b2SBen Gras.El 219*0c3983b2SBen Gras.Sh FILES 220*0c3983b2SBen Gras.Bl -hang -width /etc/man.conf -compact 221*0c3983b2SBen Gras.It Pa /etc/man.conf 222*0c3983b2SBen Grasdefault man configuration file. 223*0c3983b2SBen Gras.It Pa /usr/{share,X11R6,pkg,local}/man/whatis.db 224*0c3983b2SBen Grasstandard whatis/apropos database search path, 225*0c3983b2SBen Grasset in 226*0c3983b2SBen Gras.Pa /etc/man.conf . 227*0c3983b2SBen Gras.El 228*0c3983b2SBen Gras.Sh SEE ALSO 229*0c3983b2SBen Gras.Xr apropos 1 , 230*0c3983b2SBen Gras.Xr whatis 1 , 231*0c3983b2SBen Gras.Xr whereis 1 , 232*0c3983b2SBen Gras.Xr man.conf 5 , 233*0c3983b2SBen Gras.Xr mdoc 7 , 234*0c3983b2SBen Gras.Xr mdoc.samples 7 235*0c3983b2SBen Gras.Sh STANDARDS 236*0c3983b2SBen Gras.Nm 237*0c3983b2SBen Grasconforms to 238*0c3983b2SBen Gras.St -xcu5 . 239*0c3983b2SBen Gras.\"and is expected to conform to 240*0c3983b2SBen Gras.\".St -p1003.2-?? . 241*0c3983b2SBen Gras.Sh BUGS 242*0c3983b2SBen GrasThe on-line man pages are, by necessity, forgiving toward stupid 243*0c3983b2SBen Grasdisplay devices, causing a few man pages to be not as nicely formatted 244*0c3983b2SBen Grasas their typeset counterparts. 245