whatis: show one-line description for keyword

finds a related man page by search term and return small description

Typical usage: documentation purposes, lookup command information, general system administration

Introduction into whatis

The whatis tool is a search tool that retrieves information from the man pages. It returns a one-line description of any matches that were found in the locally available man pages. For more detailed searches, the apropos command can also be used.

Installation

When whatis is not installed by default, it can be added to the system using the relevant software package.

Package information for whatis

Operating systemPackage nameInstallation
AlmaLinuxman-db
dnf install man-db
Arch Linuxman-db
pacman -S man-db
Debianman-db
apt install man-db
Fedoraman-db
dnf install man-db
Red Hat Enterprise Linuxman-db
dnf install man-db
Rocky Linuxman-db
dnf install man-db
openSUSEman-db
zypper install man-db
Ubuntuman-db
apt install man-db

Your Linux distribution using a different package? Share your feedback.

Usage

Available options

Long optionShort optionDescription
--regex-rProvide a regular expression to use in the search

Missing an option in this overview? Share your feedback.

Examples using whatis

Return the entry for systemd

whatis systemd

Output: systemd (1) - systemd system and service manager

Search for all entries with 'man' in it

whatis --regex man

Search for all entries starting with 'man'

whatis --regex "^man"

Frequently Asked Questions

What is the whatis command and its purpose?

The whatis command is a command-line tool to search in man pages and return the results as a one-liner

Which package provides the whatis command?

The command whatis is provided by the man-db package.

Related and similar commands

Linux has a lot of tools and commands available and sometimes you just need that little other tool. Here is a list of commands that are similar or related to whatis:

Related and similar commands to whatis
CommandCategorySummary
aproposdocumentationFind related man pages