381 lines
7.6 KiB
HTML
381 lines
7.6 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of WHATIS</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>WHATIS</H1>
|
|
Section: Manual pager utils (1)<BR>Updated: 2020-02-25<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
whatis - display one-line manual page descriptions
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<B>whatis</B>
|
|
|
|
[<B>-dlv?V</B>]
|
|
|
|
[<B>-r</B>|<B>-w</B>]
|
|
[<B>-s</B>
|
|
|
|
<I>list</I>]
|
|
|
|
[<B>-m</B>
|
|
|
|
<I>system</I>[,...]]
|
|
|
|
[<B>-M</B>
|
|
|
|
<I>path</I>]
|
|
|
|
[<B>-L</B>
|
|
|
|
<I>locale</I>]
|
|
|
|
[<B>-C</B>
|
|
|
|
<I>file</I>]
|
|
|
|
<I>name</I>
|
|
|
|
...
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
Each manual page has a short description available within it.
|
|
<B>whatis</B>
|
|
|
|
searches the manual page names and displays the manual page descriptions
|
|
of any
|
|
<I>name</I>
|
|
|
|
matched.
|
|
<P>
|
|
<I>name</I>
|
|
|
|
may contain wildcards
|
|
(<B>-w</B>)
|
|
|
|
or be a regular expression
|
|
(<B>-r</B>).
|
|
|
|
Using these options, it may be necessary to quote the
|
|
<I>name</I>
|
|
|
|
or escape (\) the special characters to stop the shell from interpreting
|
|
them.
|
|
<P>
|
|
<B>index</B>
|
|
|
|
databases are used during the search, and are updated by the
|
|
<B>mandb</B>
|
|
|
|
program.
|
|
Depending on your installation, this may be run by a periodic cron job, or
|
|
may need to be run manually after new manual pages have been installed.
|
|
To produce an old style text
|
|
<B>whatis</B>
|
|
|
|
database from the relative
|
|
<B>index</B>
|
|
|
|
database, issue the command:
|
|
<P>
|
|
<B>whatis -M</B>
|
|
|
|
<I>manpath</I>
|
|
|
|
<B>-w '*' | sort ></B>
|
|
|
|
<I>manpath/whatis</I>
|
|
|
|
<P>
|
|
where
|
|
<I>manpath</I>
|
|
|
|
is a manual page hierarchy such as
|
|
<I>/usr/man</I>.
|
|
|
|
<A NAME="lbAE"> </A>
|
|
<H2>OPTIONS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="1"><B>-d</B>, <B>--debug</B>
|
|
|
|
<DD>
|
|
Print debugging information.
|
|
<DT id="2"><B>-v</B>, <B>--verbose</B>
|
|
|
|
<DD>
|
|
Print verbose warning messages.
|
|
<DT id="3"><B>-r</B>, <B>--regex</B>
|
|
|
|
<DD>
|
|
Interpret each
|
|
<I>name</I>
|
|
|
|
as a regular expression.
|
|
If a
|
|
<I>name</I>
|
|
|
|
matches any part of a page name, a match will be made.
|
|
This option causes
|
|
<B>whatis</B>
|
|
|
|
to be somewhat slower due to the nature of database searches.
|
|
<DT id="4"><B>-w</B>, <B>--wildcard</B>
|
|
|
|
<DD>
|
|
Interpret each
|
|
<I>name</I>
|
|
|
|
as a pattern containing shell style wildcards.
|
|
For a match to be made, an expanded
|
|
<I>name</I>
|
|
|
|
must match the entire page name.
|
|
This option causes
|
|
<B>whatis</B>
|
|
|
|
to be somewhat slower due to the nature of database searches.
|
|
<DT id="5"><B>-l</B>, <B>--long</B>
|
|
|
|
<DD>
|
|
Do not trim output to the terminal width.
|
|
Normally, output will be truncated to the terminal width to avoid ugly
|
|
results from poorly-written
|
|
<B>NAME</B>
|
|
|
|
sections.
|
|
<DT id="6"><B>-s</B> <I>list/</I>, <B>--sections=</B><I>list/</I>, <B>--section=</B><I>list</I><DD>
|
|
Search only the given manual sections.
|
|
<I>list</I>
|
|
|
|
is a colon- or comma-separated list of sections.
|
|
If an entry in
|
|
<I>list</I>
|
|
|
|
is a simple section, for example "3", then the displayed list of
|
|
descriptions will include pages in sections "3", "3perl", "3x", and so on;
|
|
while if an entry in
|
|
<I>list</I>
|
|
|
|
has an extension, for example "3perl", then the list will only include
|
|
pages in that exact part of the manual section.
|
|
<DT id="7"><B>-m</B> <I>system</I>[,...], <B>--systems=</B><I>system</I>[,...]<DD>
|
|
If this system has access to other operating system's manual page names,
|
|
they can be accessed using this option.
|
|
To search NewOS's manual page names,
|
|
use the option
|
|
<B>-m</B>
|
|
|
|
<B>NewOS</B>.
|
|
|
|
<P>
|
|
The
|
|
<I>system</I>
|
|
|
|
specified can be a combination of comma delimited operating system names.
|
|
To include a search of the native operating system's
|
|
manual page names, include the system name
|
|
<B>man</B>
|
|
|
|
in the argument string.
|
|
This option will override the
|
|
$<B>SYSTEM</B>
|
|
|
|
environment variable.
|
|
<DT id="8"><B>-M </B><I>path</I><B></B>, <B>--manpath=</B><I>path</I>
|
|
|
|
<DD>
|
|
Specify an alternate set of colon-delimited manual page hierarchies to
|
|
search.
|
|
By default,
|
|
<B>whatis</B>
|
|
|
|
uses the
|
|
$<B>MANPATH</B>
|
|
|
|
environment variable, unless it is empty or unset, in which case it will
|
|
determine an appropriate manpath based on your
|
|
$<B>PATH</B>
|
|
|
|
environment variable.
|
|
This option overrides the contents of
|
|
$<B>MANPATH</B>.
|
|
|
|
<DT id="9"><B>-L </B><I>locale</I><B></B>, <B>--locale=</B><I>locale</I>
|
|
|
|
<DD>
|
|
<B>whatis</B>
|
|
|
|
will normally determine your current locale by a call to the C function
|
|
<B><A HREF="/cgi-bin/man/man2html?3+setlocale">setlocale</A></B>(3)
|
|
|
|
which interrogates various environment variables, possibly including
|
|
$<B>LC_MESSAGES</B>
|
|
|
|
and
|
|
$<B>LANG</B>.
|
|
|
|
To temporarily override the determined value, use this option to supply a
|
|
<I>locale</I>
|
|
|
|
string directly to
|
|
<B>whatis</B>.
|
|
|
|
Note that it will not take effect until the search for pages actually
|
|
begins.
|
|
Output such as the help message will always be displayed in the initially
|
|
determined locale.
|
|
<DT id="10"><B>-C </B><I>file</I><B></B>, <B>--config-file=</B><I>file</I>
|
|
|
|
<DD>
|
|
Use this user configuration file rather than the default of
|
|
<I>~/.manpath</I>.
|
|
|
|
<DT id="11"><B>-?</B>, <B>--help</B>
|
|
|
|
<DD>
|
|
Print a help message and exit.
|
|
<DT id="12"><B>--usage</B>
|
|
|
|
<DD>
|
|
Print a short usage message and exit.
|
|
<DT id="13"><B>-V</B>, <B>--version</B>
|
|
|
|
<DD>
|
|
Display version information.
|
|
</DL>
|
|
<A NAME="lbAF"> </A>
|
|
<H2>EXIT STATUS</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="14"><B>0</B>
|
|
|
|
<DD>
|
|
Successful program execution.
|
|
<DT id="15"><B>1</B>
|
|
|
|
<DD>
|
|
Usage, syntax or configuration file error.
|
|
<DT id="16"><B>2</B>
|
|
|
|
<DD>
|
|
Operational error.
|
|
<DT id="17"><B>16</B>
|
|
|
|
<DD>
|
|
Nothing was found that matched the criteria specified.
|
|
</DL>
|
|
<A NAME="lbAG"> </A>
|
|
<H2>ENVIRONMENT</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="18"><B>SYSTEM</B>
|
|
|
|
<DD>
|
|
If
|
|
$<B>SYSTEM</B>
|
|
|
|
is set, it will have the same effect as if it had been specified as the
|
|
argument to the
|
|
<B>-m</B>
|
|
|
|
option.
|
|
<DT id="19"><B>MANPATH</B>
|
|
|
|
<DD>
|
|
If
|
|
$<B>MANPATH</B>
|
|
|
|
is set, its value is interpreted as the colon-delimited manual page
|
|
hierarchy search path to use.
|
|
<DT id="20"><B>MANWIDTH</B>
|
|
|
|
<DD>
|
|
If
|
|
$<B>MANWIDTH</B>
|
|
|
|
is set, its value is used as the terminal width (see the
|
|
<B>--long</B>
|
|
|
|
option).
|
|
If it is not set, the terminal width will be calculated using the value of
|
|
$<B>COLUMNS</B>,
|
|
|
|
and
|
|
<B><A HREF="/cgi-bin/man/man2html?2+ioctl">ioctl</A></B>(2)
|
|
|
|
if available, or falling back to 80 characters if all else fails.
|
|
</DL>
|
|
<A NAME="lbAH"> </A>
|
|
<H2>FILES</H2>
|
|
|
|
<DL COMPACT>
|
|
<DT id="21"><I>/usr/share/man/index.(bt|db|dir|pag)</I>
|
|
|
|
<DD>
|
|
A traditional global
|
|
<I>index</I>
|
|
|
|
database cache.
|
|
<DT id="22"><I>/var/cache/man/index.(bt|db|dir|pag)</I>
|
|
|
|
<DD>
|
|
An FHS
|
|
compliant global
|
|
<I>index</I>
|
|
|
|
database cache.
|
|
<DT id="23"><I>/usr/share/man/.../whatis</I>
|
|
|
|
<DD>
|
|
A traditional
|
|
<B>whatis</B>
|
|
|
|
text database.
|
|
</DL>
|
|
<A NAME="lbAI"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+apropos">apropos</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?1+man">man</A></B>(1),
|
|
|
|
<B><A HREF="/cgi-bin/man/man2html?8+mandb">mandb</A></B>(8)
|
|
|
|
<A NAME="lbAJ"> </A>
|
|
<H2>AUTHOR</H2>
|
|
|
|
<PRE>
|
|
Wilf. (<A HREF="mailto:G.Wilford@ee.surrey.ac.uk">G.Wilford@ee.surrey.ac.uk</A>).
|
|
Fabrizio Polacco (<A HREF="mailto:fpolacco@debian.org">fpolacco@debian.org</A>).
|
|
Colin Watson (<A HREF="mailto:cjwatson@debian.org">cjwatson@debian.org</A>).
|
|
</PRE>
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="24"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="25"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="26"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="27"><A HREF="#lbAE">OPTIONS</A><DD>
|
|
<DT id="28"><A HREF="#lbAF">EXIT STATUS</A><DD>
|
|
<DT id="29"><A HREF="#lbAG">ENVIRONMENT</A><DD>
|
|
<DT id="30"><A HREF="#lbAH">FILES</A><DD>
|
|
<DT id="31"><A HREF="#lbAI">SEE ALSO</A><DD>
|
|
<DT id="32"><A HREF="#lbAJ">AUTHOR</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:29 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|