Cheatsheets
HomeWriteupsResourcesCheatsheets
Linux
Linux
  • Know Yourself and Your System
    • id
    • logname
    • uname
    • w
    • who
    • whoami
  • Surfing / Knowing Your File System
    • cd
    • df
    • du
    • ls
    • pwd
    • stat
    • tree
  • Knowing About Files / Commands
    • alias
    • file
    • info
    • whatis
    • apropos
    • man
    • help
    • history
    • script
  • Manipulating Files / Directories
    • touch
    • mkdir
    • rm
    • rmdir
    • cp
    • mv
    • ln
  • Interacting with Files
    • cat
    • head
    • less
    • middle
    • more
    • tail
  • STROPS / Text Manipulation
    • awk
    • cut
    • grep
    • jq
    • join
    • paste
    • sed
    • sort
    • tr
    • uniq
    • xargs
    • xclip
    • wc
    • tee
    • echo
    • comm
    • diff
    • patch
    • aspell
    • Combos
  • Formatting the Output
    • nl
    • fold
    • fmt
    • pr
    • printf
  • Searching / Finding
    • find
    • locate
    • which
    • whereis
    • type
  • Web Interaction
    • curl
    • wget
  • xxd
  • References
Powered by GitBook
On this page
  • Introduction
  • Syntax
  • Important Flags
  • Examples

Was this helpful?

  1. Knowing About Files / Commands

apropos

apropos linux command cheatsheet by Thamizhiniyan C S

Introduction

The apropos command is used to search the manual page names and descriptions.


Syntax

apropos [-dalv?V] [-e|-w|-r] [-s list] [-m system[,...]] [-M path] [-L locale] [-C file] keyword ...


Important Flags

Flag
Description

whatis -d, --debug

Prints debugging messages.

whatis -v, --verbose

Print verbose warning messages.

whatis -e, --exact

Search each keyword for exact match.

whatis -r, --regex

Interpret each keyword as a regex.

whatis -w, --wildcard

The keyword(s) contain wildcards.

whatis -a, --and

Require all keywords to match.

whatis -l, --long

Do not trim output to terminal width.

whatis -C, --config-file=FILE

Uses user-configuration files instead of the $MANPATH.

whatis -L, --locale=LOCALE

Define the locale for this search.

whatis -m, --systems=SYSTEM

Use manual pages from other systems. Looks for man page descriptions from other OSs.

whatis -M, --manpath=PATH

Sets the search path to PATH rather than the default $MANPATH.

whatis -s, --sections=LIST, --section=LIST

Search only these sections (colon-separated). Searches only in specific man pages sections.

whatis -?, --help

Give this help list.

whatis --usage

Give a short usage message.

whatis -V, --version

Print program version.


Examples

Command
Description

The apropos primary usage is to find a single keyword in man pages.

Add another variable to narrow down the matches.

Achieve a similar effect without `-a` by encasing keywords in double quotes.

Find Either of Two / More Parameters

Find Exact Match

Search Specific Sections

Use Regex Symbols

Use regex to conduct an even more specific search.

As the output shows, each line includes list at the beginning, belongs to section 3 or 8, and has one of the keywords.

To avoid the trimming of descriptions in apropos command output

PreviouswhatisNextman

Last updated 11 months ago

Was this helpful?

apropos list
apropos -a list directory
apropos "list directory"
apropos delete terminate remove
apropos -e set
apropos -s 1,8 list
apropos '^list'
apropos "zip(note|cloak|info)"
apropos -a -s 3,8 "^list" "(implementation|devices|users)"
apropos list -l