• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

whatis Command Examples in Linux

by Deepika

The “whatis” command is a Unix/Linux utility that allows you to quickly search and display one-line descriptions of commands or topics from the system’s manual pages.

Manual pages (also known as “man pages”) are built-in documentation for Unix/Linux commands and other system utilities. Each manual page typically includes a detailed description of the command, its syntax, options, and examples of usage.

However, manual pages can be lengthy and difficult to search through. This is where the “whatis” command comes in handy. By typing “whatis” followed by a keyword or command, you can quickly get a one-line description of what that command does or what a particular topic is about.

For example, if you type “whatis ls”, you will get a one-line description of the “ls” command, which is used to list the contents of a directory. Similarly, if you type “whatis SSH”, you will get a one-line description of the SSH (Secure Shell) protocol, which is used for secure remote login and file transfer.

The “whatis” command is useful for quickly looking up the basic functionality of a command or topic without having to read through its entire manual page. It can be especially helpful for beginners who are just starting to learn Unix/Linux commands and need a quick reference.

You can also use the “whatis” command with wildcards to search for multiple commands or topics at once. For example, typing “whatis -w ‘network'” will display a list of all manual pages that contain the word “network” in their descriptions.

whatis Command Examples

1. Display a description from a man page:

# whatis command

2. Don’t cut the description off at the end of the line:

# whatis --long command

3. Display descriptions for all commands matching a glob:

# whatis --wildcard net*

4. Search man page descriptions with a regular expression:

# whatis --regex 'wish[0-9]\.[0-9]'

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to Verify a Lun is in Active/Optimized Mode when ALUA Is Configured on Storage
  2. imgp: command not found
  3. keyctl: command not found
  4. sm: command not found
  5. Linux Boot Process
  6. nano: command not found
  7. lsof: command not found
  8. acountry Command Examples in Linux
  9. apt-get Command Examples in Linux
  10. yum Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • aws ec2: CLI for AWS EC2 (Command Examples)
  • aws cur – Create, query, and delete AWS usage report definitions (Command Examples)
  • aws configure – Manage configuration for the AWS CLI (Command Examples)
  • aws cognito-idp: Manage Amazon Cognito user pool and its users and groups using the CLI

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright