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

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

Search keyword in all available man pages – man command

April 6, 2014 by Sharad Chhetri Leave a Comment

In this tutorial we will learn, simple method to find the keyword in all available man pages in Linux / Unix system. First we have to be confirm that man command is installed.

man page

Abbreviation of man page is manual page. It is a software documentation in Unix like operating system. Generally in many Linux distro, man pages are located at /usr/share/man .
You can also use whereis man command to get the path of man pages in system.

To read the man page of command/terminology , use the below given command

man command_name-OR-term

NOTE: We have written this post exclusively with man command. There are also other command which help you to find the man pages by searching with keyword

Search keyword in all available man pages

To search the keyword or string in all available man pages in Linux / Unix system, we can use option called -k

Syntax:

man -k keyword

For example, we want to search for keyword called vsftpd. We will use the below given command

root@tuxworld:~# man -k "vsftpd"
vsftpd (8)           - Very Secure FTP Daemon
vsftpd.conf (5)      - config file for vsftpd
root@tuxworld:~#

From above command, we got two results vsftpd and vfstpd.conf . It means vsftpd keyword found in two available man pages.It can be read by below given two commands.

man vsftpd

and

man vsftpd.conf

Lets take another example. This time we will search for keyword called dhcpd.
In my system, now I will check the keyword dhcpd in man pages. The result may vary system to system.

root@tuxworld:~# man -k dhcpd
dhcpd (8)            - Dynamic Host Configuration Protocol Server
dhcpd.conf (5)       - dhcpd configuration file
dhcpd.leases (5)     - DHCP client lease database
udhcpd (8)           - The Swiss Army Knife of Embedded Linux
udhcpd.conf (5)      - udhcp server configuration file
root@tuxworld:~#

Now you can see in above given output,we have 5 results (dhcpd, dhcpd.conf, dhcpd.leases, udhcpd, udhcpd.conf)

Using -K option

When we use -K (Capital letter) with man command.It shows the result but not exactly like as we have seen with -k (small letter) .

It will display the result by directly opening the man page.To close this page hit the key q from your keyboard.Then hit enter.
If there is another manual page in system has this keyword, it will automatically open up. Then again you have close that man page by hitting q key
It will go likewise till all man pages are opened by user. To close this search, use CTRL + c (Combination of CTRL and C key) from your keyboard

See the animated GIF example, for explanation :

man page

(Read this post, Convert video file into gif file through command line in linux )

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. Search Keyword In Man Page Like We Search In vi / vim Editor
  2. awk command to search keyword or strings in file
  3. find command to search keyword in files recursively in linux
  4. search keyword in file with line number using grep command
  5. man command not found in CentOS and Red Hat
  6. grep command to show lines after and before the keyword
  7. grep command to find multiple strings or keyword from file
  8. sed : find the pattern (keyword) and delete the line from file
  9. How to use grep command to get fixed pattern or exact keyword
  10. How To Add duckduckgo Search engine in WordPress Blog or website

Filed Under: Linux, Linux Commands Tagged With: linux command

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Linux Commands

How to show line numbers with less command in Linux

How to show user account password expiration detail on Linux

How to make rm -fr command to be interactive

group ownership reference to file/dir from other file/dir in linux

How To Get SSH Public Key Fingerprint Information

semanage command not found in CentOS 6 and RHEL 6

How to rename and move the directory and files in linux

Explore 70+ Articles On Linux Commands

Always Useful Tips And Tricks

How to zip the directory in linux with command line

Change default editor of crontab in Ubuntu

How to download package using apt-get command in ubuntu

fatal error: error writing to /tmp/ccwAjc9Z.s: No space left on device

How to change hostname in Ubuntu 12.04 and 12.10 without system restart

send email after mysql backup through bash script in simple way

Keep logs of user after sudo su – : Secondary Logging

Explore 90+ Article On "Linux Tips And Tricks"

You Might Like These Articles!

Internal External Command

What is Linux/Unix Internal And External Command

Linux basic command

Linux Basic Commands For Every Beginner

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission but Schools and Colleges can do in their Private Network
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy