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

whatis

whatis linux command cheatsheet by Thamizhiniyan C S

Introduction

The whatis command is used to display one-line manual page descriptions.


Syntax

whatis [-dlv?V] [-r|-w] [-s list] [-m system[,...]] [-M path] [-L locale] [-C file] name ...


Important Flags

Flag
Description

-d, --debug

Emit debugging messages.

-v, --verbose

Print verbose warning messages.

-r, --regex

Interpret each keyword as a regex.

-w, --wildcard

The keyword(s) contain wildcards.

-l, --long

Do not trim output to terminal width.

-C, --config-file=FILE

Use this user configuration file.

-L, --locale=LOCALE

Define the locale for this search.

-m, --systems=SYSTEM

Use manual pages from other systems.

-M, --manpath=PATH

Set search path for manual pages to PATH.

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

Search only these sections (colon-separated).

-?, --help

Give this help list.

--usage

Give a short usage message.

-V, --version

Print program version.


Examples

Command
Description

Prints the help message.

Prints the debugging information.

Prints verbose warning messages.

Supports regular expression searches.

Searches and displays short descriptions of commands and functions matching the regular expression '^ab'.

Searches and displays short descriptions of commands and functions matching the regular expression '^cd'.

Searches and displays short descriptions of commands and functions matching the regular expression 'cd$'.

Enables wildcard searches using the specified pattern.

Searches and displays short descriptions of commands and functions matching the wildcard pattern 'ab*'.

Searches and displays short descriptions of commands and functions matching the wildcard pattern 'cd*'.

Displays long descriptions in addition to the summary.

Allows users to specify the sections from which to retrieve the information. By default, it searches all sections.

Accesses information from sections 1 and 2 of the manual page for the cat command.

Accesses manual page names for other operating systems.

Accesses the short description of the rmdir command from the OS2 manual pages.

Specifies an alternate set of colon-delimited manual page hierarchies to search. It overrides the default value of the $MANPATH environment variable.

Temporarily overrides the determined locale value, allowing users to supply a locale string directly to the 'whatis' command.

Specifies a user configuration file for the 'whatis' command, overriding the default configuration file location ~/.manpath.

Prints a help message.

Displays short information about the whatis command and exits.

Displays version information.

Displays the trimmed output of the ssh-import-id command.

PreviousinfoNextapropos

Last updated 11 months ago

Was this helpful?

whatis -h
whatis -d ls
whatis -v ls
whatis -r ls
whatis -r '^ab'
whatis -r '^cd'
whatis -r 'cd$'
whatis -w ls
whatis -w 'ab*'
whatis -w 'cd*'
whatis -l cat
whatis -s 3 cat
whatis -s "1","2" cat
whatis -m NewOS rmdir
whatis -m OS2 rmdir
whatis cd -M --manpath=/lib/cd
whatis rm -L locale
whatis -C file
whatis -?
whatis --usage
whatis -V
whatis ssh-import-id