1*95c635efSGarrett D'Amore.\" Copyright 2014 Garrett D'Amore <garrett@damore.org> 2c10c16deSRichard Lowe.\" Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved 3c10c16deSRichard Lowe.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. 4c10c16deSRichard Lowe.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. 5c10c16deSRichard Lowe.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] 6*95c635efSGarrett D'Amore.Dd "Jul 20, 2014" 7*95c635efSGarrett D'Amore.Dt APROPOS 1 8*95c635efSGarrett D'Amore.Os 9*95c635efSGarrett D'Amore.Sh NAME 10*95c635efSGarrett D'Amore.Nm apropos, whatis 11*95c635efSGarrett D'Amore.Nd locate commands by keyword lookup 12*95c635efSGarrett D'Amore.Sh SYNOPSIS 13*95c635efSGarrett D'Amore.Nm apropos 14*95c635efSGarrett D'Amore.Op Fl M Ar path 15*95c635efSGarrett D'Amore.Op Fl s Ar section 16*95c635efSGarrett D'Amore.Ar keyword ... 17*95c635efSGarrett D'Amore.Nm whatis 18*95c635efSGarrett D'Amore.Op Fl M Ar path 19*95c635efSGarrett D'Amore.Op Fl s Ar section 20*95c635efSGarrett D'Amore.Ar keyword ... 21*95c635efSGarrett D'Amore.Sh DESCRIPTION 22*95c635efSGarrett D'AmoreThe 23*95c635efSGarrett D'Amore.Nm apropos 24*95c635efSGarrett D'Amoreutility displays the man page name, section number, and a 25*95c635efSGarrett D'Amoreshort description for each man page whose 26*95c635efSGarrett D'Amore.Em NAME 27*95c635efSGarrett D'Amoreline contains 28*95c635efSGarrett D'Amore.Ar keyword . 29*95c635efSGarrett D'AmoreThis information is contained in the 30*95c635efSGarrett D'Amore.Nm whatis 31*95c635efSGarrett D'Amoredatabase created by the 32*95c635efSGarrett D'Amore.Fl w 33*95c635efSGarrett D'Amoreoption used with 34*95c635efSGarrett D'Amore.Xr man 1 . 35*95c635efSGarrett D'AmoreIf this database is not present, 36*95c635efSGarrett D'Amore.Nm apropos 37c10c16deSRichard Loweand 38*95c635efSGarrett D'Amore.Nm whatis 39*95c635efSGarrett D'Amorefail. 40*95c635efSGarrett D'Amore.Lp 41*95c635efSGarrett D'AmoreEach word is considered 42*95c635efSGarrett D'Amoreseparately and the case of letters is ignored. Words which are part of other 43*95c635efSGarrett D'Amorewords are considered; for example, when looking for 44*95c635efSGarrett D'Amore.Sq compile , 45*95c635efSGarrett D'Amore.Nm apropos 46*95c635efSGarrett D'Amorefinds all instances of 47*95c635efSGarrett D'Amore.Sq compiler 48*95c635efSGarrett D'Amorealso. 49*95c635efSGarrett D'Amore.Lp 50*95c635efSGarrett D'AmoreThe 51*95c635efSGarrett D'Amore.Nm whatis 52*95c635efSGarrett D'Amorecommand performs the same search, but only matches whole words. In the above 53*95c635efSGarrett D'Amoreexample, 54*95c635efSGarrett D'Amore.Nm whatis 55*95c635efSGarrett D'Amorewould not match the instances of 56*95c635efSGarrett D'Amore.Sq compiler 57*95c635efSGarrett D'Amorewhen 58*95c635efSGarrett D'Amore.Ar keyword 59*95c635efSGarrett D'Amoreis 60*95c635efSGarrett D'Amore.Sq compile . 61*95c635efSGarrett D'Amore.Lp 62*95c635efSGarrett D'AmoreThe 63*95c635efSGarrett D'Amore.Nm apropos 64*95c635efSGarrett D'Amorecommand is actually just the 65*95c635efSGarrett D'Amore.Fl k 66*95c635efSGarrett D'Amoreoption to the 67*95c635efSGarrett D'Amore.Xr man 1 68*95c635efSGarrett D'Amorecommand. 69*95c635efSGarrett D'Amore.Sh OPTIONS 70*95c635efSGarrett D'Amore.Bl -tag -width "-s section" 71*95c635efSGarrett D'Amore.It Fl M Ar path 72*95c635efSGarrett D'AmoreForce a specific colon separated manual path instead of the 73*95c635efSGarrett D'Amoredefault search path. Overrides the MANPATH environment variable. 74*95c635efSGarrett D'Amore.It Fl s Ar section 75*95c635efSGarrett D'AmoreRestrict search to specified section. 76*95c635efSGarrett D'Amore.El 77*95c635efSGarrett D'Amore.Sh ENVIRONMENT 78*95c635efSGarrett D'Amore.Bl -tag -width "MANPATH, PATH" 79*95c635efSGarrett D'Amore.It Ev MANPATH , PATH 80*95c635efSGarrett D'AmoreUsed to find the location of the 81*95c635efSGarrett D'Amore.Nm whatis 82*95c635efSGarrett D'Amoredatabase. 83*95c635efSGarrett D'Amore.El 84*95c635efSGarrett D'Amore.Sh FILES 85*95c635efSGarrett D'Amore.Bl -tag -width "/usr/share/man/whatis" 86*95c635efSGarrett D'Amore.It Pa /usr/share/man/whatis 87c10c16deSRichard Lowetable of contents and keyword database 88*95c635efSGarrett D'Amore.El 89*95c635efSGarrett D'Amore.Sh EXAMPLES 90*95c635efSGarrett D'Amore.Ss Example 1 To find a man page whose NAME line contains a keyword 91*95c635efSGarrett D'AmoreTry 92*95c635efSGarrett D'Amore.Lp 93*95c635efSGarrett D'Amore.Dl example% apropos password 94*95c635efSGarrett D'Amore.Lp 95*95c635efSGarrett D'AmoreIf the line starts 96*95c635efSGarrett D'Amore.So Ar filename Ns Po Ar section Pc .\|.\|. Sc 97*95c635efSGarrett D'Amoreyou can run 98*95c635efSGarrett D'Amore.Lp 99*95c635efSGarrett D'Amore.Dl % Nm man Fl s Ar section Ar filename 100*95c635efSGarrett D'Amore.Lp 101*95c635efSGarrett D'Amoreto display the man page for \fIfilename\fR. 102*95c635efSGarrett D'Amore.Ss Example 2 To find the man page for the subroutine \fBprintf() 103*95c635efSGarrett D'AmoreTry 104*95c635efSGarrett D'Amore.Lp 105*95c635efSGarrett D'Amore.Dl example% Nm apropos Li format 106*95c635efSGarrett D'Amore.Lp 107*95c635efSGarrett D'Amoreand then 108*95c635efSGarrett D'Amore.Lp 109*95c635efSGarrett D'Amore.Dl example% Nm man Fl s Ar 3C Li printf 110*95c635efSGarrett D'Amore.Lp 111*95c635efSGarrett D'Amoreto get the manual page on the subroutine 112*95c635efSGarrett D'Amore.Xr printf 3C . 113*95c635efSGarrett D'Amore.Sh DIAGNOSTICS 114*95c635efSGarrett D'Amore.Bl -tag -width Ds 115*95c635efSGarrett D'Amore.It "/usr/share/man/whatis: No such file or directory" 116*95c635efSGarrett D'AmoreThe 117*95c635efSGarrett D'Amore.Nm whatis 118*95c635efSGarrett D'Amoredatabase does not exist. 119*95c635efSGarrett D'AmoreThe command 120*95c635efSGarrett D'Amore.Nm man 121*95c635efSGarrett D'Amore.Fl w 122*95c635efSGarrett D'Amoremust be run to create it. 123*95c635efSGarrett D'Amore.El 124*95c635efSGarrett D'Amore.Sh CODE SET INDEPENDENCE 125*95c635efSGarrett D'AmoreEnabled. 126*95c635efSGarrett D'Amore.Sh INTERFACE STABILITY 127*95c635efSGarrett D'Amore.Nm Committed . 128*95c635efSGarrett D'Amore.Sh SEE ALSO 129*95c635efSGarrett D'Amore.Xr man 1 , 130*95c635efSGarrett D'Amore.Xr catman 1M 131