Skip to content

Linux apropos command

The Linux apropos command is used to search the manual pages for a given keyword. It helps users find relevant commands and their descriptions quickly. By using the apropos command, you can easily locate the appropriate commands for specific tasks without having to manually search through the entire manual. This can greatly improve your efficiency when working in the terminal. Simply enter “apropos” followed by a keyword, and the command will display a list of relevant commands along with their descriptions. This can be especially useful for users who are new to Linux or those looking to expand their knowledge of available commands.

apropos Syntax:

Terminal window
apropos [option] [keyword]

Options:

OptionDescription
-rSearch for a specific regular expression pattern
-sLimit search to specific section
-wOnly match whole words
-lDisplay filenames where keyword shows up
-iCase-insensitive search
-mLimit the number of results displayed

Parameters:

ParameterDescription
keywordThe keyword(s) to search for in the man pages

apropos Usage:

Terminal window
apropos copy

Searches the manual page descriptions for commands related to “copy”.

Terminal window
apropos search

Displays a list of commands related to the keyword “search” using the apropos command.

Search for text processing commands

Terminal window
apropos text processing

Finds commands related to text processing by using the specified keywords in the manual page descriptions.

Display all available options for “ls” command

Terminal window
apropos ls

Shows all available options and commands related to the “ls” command by using the apropos command.

How do I use apropos in Linux?

To use the apropos command in Linux, execute the following command:

Terminal window
apropos search_term

How to display a short description for each command found with apropos?

To display a short description for each command found with apropos, use the following command:

Terminal window
apropos -s search_term

How to search for commands using a specific keyword with apropos?

To search for commands using a specific keyword with apropos, use the following command:

Terminal window
apropos keyword

How to perform a case-insensitive search with apropos in Linux?

To perform a case-insensitive search with apropos in Linux, use the following command:

Terminal window
apropos -i search_term

To find system commands related to a specific keyword with apropos, use the following command:

Terminal window
apropos -s search_term

How to get detailed information about a command using apropos in Linux?

To get detailed information about a command using apropos in Linux, use the following command:

Terminal window
apropos -l search_term

How to search for commands based on a specific keyword in the command description with apropos?

To search for commands based on a specific keyword in the command description with apropos, use the following command:

Terminal window
apropos -d keyword

Applications of the apropos Command

  • Searching for commands
  • Finding relevant man pages
  • Browsing through available command descriptions
  • Discovering related tools or utilities