[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Commands Reference, Volume 6


whatis Command

Purpose

Describes what function a command performs.

Syntax

whatis [ -M PathName ] Command ...

Description

The whatis command looks up a given command, system call, library function, or special file name, as specified by the Command parameter, from a database you create using the catman -w command. The whatis command displays the header line from the manual section. You can then issue the man command to obtain additional information.

The whatis command is equivalent to using the man -f command.

Note: When the /usr/share/man/whatis database is built from the HTML library using the catman -w command, section 3 is equivalent to section 2 or 3. See the man command for further explanation of sections.

Flags


-M PathName Specifies an alternative search path. The search path is specified by the PathName parameter, and is a colon-separated list of directories in which the whatis command expects to find the standard manual subdirectories.

Examples

To find out what the ls command does, enter:

whatis ls 

This produces the following output:

ls(1)  -Displays the contents of a directory.

Files


/usr/share/man/whatis Contains the whatis database.

Related Information

The apropos command, catman command, ls command, man command.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]