LinuxCommandLibrary

apropos

Search manual page descriptions by keyword

TLDR

Search man pages by keyword

$ apropos [keyword]
copy
Search with exact match
$ apropos -e [keyword]
copy
Search in specific sections
$ apropos -s [1,8] [keyword]
copy
Search with regex
$ apropos -r "[network.*config]"
copy
Show long descriptions
$ apropos -l [keyword]
copy

SYNOPSIS

apropos [-e] [-r] [-s sections] [-l] keyword

DESCRIPTION

apropos searches the manual page names and short descriptions for keywords, helping you find relevant commands when you don't know the exact name.
The search queries the whatis database built by mandb. Multiple keywords are OR'd together; use regex for AND behavior.

PARAMETERS

-e, --exact

Search for exact keyword match
-r, --regex
Interpret keyword as regular expression
-w, --wildcard
Interpret keyword as shell wildcard
-s list, --sections list
Search only specified manual sections
-l, --long
Don't truncate output lines
-a, --and
Require all keywords to match

CAVEATS

Results depend on the whatis database being up to date. Run mandb to update if new packages were installed. Some man pages may have poor descriptions.

HISTORY

apropos has been part of Unix systems since early versions, helping users discover relevant commands. It's equivalent to man -k.

SEE ALSO

man(1), whatis(1), mandb(8)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community