1*0c3983b2SBen Gras.\" $NetBSD: apropos.1,v 1.11 2009/05/08 12:48:43 wiz 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.\" @(#)apropos.1 8.1 (Berkeley) 6/29/93 31*0c3983b2SBen Gras.\" 32*0c3983b2SBen Gras.Dd May 7, 2009 33*0c3983b2SBen Gras.Dt APROPOS 1 34*0c3983b2SBen Gras.Os 35*0c3983b2SBen Gras.Sh NAME 36*0c3983b2SBen Gras.Nm apropos 37*0c3983b2SBen Gras.Nd locate commands by keyword lookup 38*0c3983b2SBen Gras.Sh SYNOPSIS 39*0c3983b2SBen Gras.Nm apropos 40*0c3983b2SBen Gras.Op Fl C Ar path 41*0c3983b2SBen Gras.Op Fl M Ar path 42*0c3983b2SBen Gras.Op Fl m Ar path 43*0c3983b2SBen Gras.Op Fl S Ar subsection 44*0c3983b2SBen Gras.Op Fl s Ar section 45*0c3983b2SBen Gras.Ar keyword ... 46*0c3983b2SBen Gras.Sh DESCRIPTION 47*0c3983b2SBen Gras.Nm 48*0c3983b2SBen Grasshows which manual pages contain instances of any of the given 49*0c3983b2SBen Gras.Ar keyword(s) 50*0c3983b2SBen Grasin their title line. 51*0c3983b2SBen GrasEach word is considered separately and case of letters is ignored. 52*0c3983b2SBen GrasWords which are part of other words are considered; when looking for 53*0c3983b2SBen Gras.Dq compile , 54*0c3983b2SBen Gras.Nm 55*0c3983b2SBen Graswill also list all instances of 56*0c3983b2SBen Gras.Dq compiler . 57*0c3983b2SBen Gras.Pp 58*0c3983b2SBen GrasIf the line output by 59*0c3983b2SBen Gras.Nm 60*0c3983b2SBen Grasstarts 61*0c3983b2SBen Gras.Dq Li name(section) ... 62*0c3983b2SBen Grasyou can enter 63*0c3983b2SBen Gras.Dq Li man section name 64*0c3983b2SBen Grasto get 65*0c3983b2SBen Grasits documentation. 66*0c3983b2SBen Gras.Pp 67*0c3983b2SBen GrasThe options are as follows: 68*0c3983b2SBen Gras.Bl -tag -width flag 69*0c3983b2SBen Gras.It Fl C 70*0c3983b2SBen GrasUse different 71*0c3983b2SBen Gras.Xr man 1 72*0c3983b2SBen Grasconfiguration file than the default, 73*0c3983b2SBen Gras.Pa /etc/man.conf . 74*0c3983b2SBen Gras.It Fl M 75*0c3983b2SBen GrasOverride the list of standard directories 76*0c3983b2SBen Gras.Nm 77*0c3983b2SBen Grassearches for a database named 78*0c3983b2SBen Gras.Pa whatis.db . 79*0c3983b2SBen GrasThe supplied 80*0c3983b2SBen Gras.Ar path 81*0c3983b2SBen Grasmust be a colon 82*0c3983b2SBen Gras.Dq \&: 83*0c3983b2SBen Grasseparated list of directories. 84*0c3983b2SBen GrasThis search path may also be set using the environment variable 85*0c3983b2SBen Gras.Ev MANPATH . 86*0c3983b2SBen Gras.It Fl m 87*0c3983b2SBen GrasAugment the list of standard directories 88*0c3983b2SBen Gras.Nm 89*0c3983b2SBen Grassearches for its database. 90*0c3983b2SBen GrasThe supplied 91*0c3983b2SBen Gras.Ar path 92*0c3983b2SBen Grasmust be a colon 93*0c3983b2SBen Gras.Dq \&: 94*0c3983b2SBen Grasseparated list of directories. 95*0c3983b2SBen GrasThese directories will be searched before the standard directories, 96*0c3983b2SBen Grasor the directories supplied with the 97*0c3983b2SBen Gras.Fl M 98*0c3983b2SBen Grasoption or the 99*0c3983b2SBen Gras.Ev MANPATH 100*0c3983b2SBen Grasenvironment variable. 101*0c3983b2SBen Gras.It Fl S Ar subsection 102*0c3983b2SBen GrasRestrict the search to pages for the specified machine architecture. 103*0c3983b2SBen GrasBy default, pages for all architectures are shown. 104*0c3983b2SBen Gras.It Fl s Ar section 105*0c3983b2SBen GrasRestrict the search to the specified section of the manual. 106*0c3983b2SBen GrasBy default, pages from all sections are shown. 107*0c3983b2SBen Gras.El 108*0c3983b2SBen Gras.Sh ENVIRONMENT 109*0c3983b2SBen Gras.Bl -tag -width MANPATH 110*0c3983b2SBen Gras.It Ev MANPATH 111*0c3983b2SBen GrasThe standard search path used by 112*0c3983b2SBen Gras.Xr man 1 113*0c3983b2SBen Grasmay be overridden by specifying a path in the 114*0c3983b2SBen Gras.Ev MANPATH 115*0c3983b2SBen Grasenvironment variable. 116*0c3983b2SBen GrasThe format of the path is a colon 117*0c3983b2SBen Gras.Dq \&: 118*0c3983b2SBen Grasseparated list of directories. 119*0c3983b2SBen Gras.El 120*0c3983b2SBen Gras.Sh FILES 121*0c3983b2SBen Gras.Bl -tag -width /etc/man.conf1 -compact 122*0c3983b2SBen Gras.It Pa whatis.db 123*0c3983b2SBen Grasname of the apropos database 124*0c3983b2SBen Gras.It Pa /etc/man.conf 125*0c3983b2SBen Gras.Xr man 1 126*0c3983b2SBen Grasconfiguration file, used to get location of whatis database if 127*0c3983b2SBen Gras.Ev MANPATH 128*0c3983b2SBen Grasis not set. 129*0c3983b2SBen Gras.El 130*0c3983b2SBen Gras.Sh SEE ALSO 131*0c3983b2SBen Gras.Xr man 1 , 132*0c3983b2SBen Gras.Xr whatis 1 , 133*0c3983b2SBen Gras.Xr whereis 1 , 134*0c3983b2SBen Gras.Xr man.conf 5 , 135*0c3983b2SBen Gras.Xr makewhatis 8 136*0c3983b2SBen Gras.Sh HISTORY 137*0c3983b2SBen GrasThe 138*0c3983b2SBen Gras.Nm 139*0c3983b2SBen Grascommand appeared in 140*0c3983b2SBen Gras.Bx 3.0 . 141