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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

RHEL 7 – RHCSA Notes – System documentation including man, info, and files in /usr/share/doc

by admin

RHEL 7 – RHCSA Notes (Cheat Sheets)

Using man

To find a command using a keyword :

# man -k [keyword]

When you know the exact command to be used, you can use the man page for that command as :

# man [command]

There are several sections within a man page. Most commonly used sections are listed below :

Section Description
1 User Commands
4 Special files
5 system configuration files
8 system administration commands

So to find configuration file for ntp (which is /etc/ntp.conf), you can use :

# man -5 ntp

To display short description for a command or configuration from man database use whatis:

# whatis passwd
passwd(1)                - update user's authentication tokens
sshpasswd(1ssl)          - compute password hashes
passwd(5)				 - password file

You can also use the -f option of man command to get the same results:

# man -f passwd

To update man database after adding any new packages:

# mandb

Info command

Info command is available as part of info package and provides more detailed information than man command.

# info [command]

Documentation in /usr/share/doc

The /usr/share/doc directory stores documentation(release notes, installation guide etc.) for all packages under respective directories by the name of package.

# ls /usr/share/doc/ntp/*

Filed Under: Linux

Some more articles you might also be interested in …

  1. fprintd-delete: command not found
  2. bsdtar command – Read and write tape archive files
  3. rc-status: command not found
  4. gnome-software Command Examples in Linux
  5. josm Command Examples
  6. balena Command Examples (Interact with the balenaCloud, openBalena and the balena API from the command-line)
  7. mdadm Command Shows State : active, degraded
  8. http-prompt Command Examples in Linux
  9. –force V/s –nodeps : rpm command options to install or uninstall a package
  10. bc: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright