• 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

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. How to Delete the Files Which are Older Than n Days WITHOUT Using find Command
  2. mailq Command Examples in Linux
  3. macof: command not found
  4. ldconfig Command Options
  5. CentOS / RHEL 6 : How to disable Transparent Huge pages (THP)
  6. lvcreate Command Examples in Linux
  7. Yum Command Fails with “Another app is currently holding the yum lock” in CentOS/ RHEL 7
  8. How to set “max_report_luns” and “max_luns” on CentOS/RHEL 6 to scan more than 512 LUNs
  9. How to change the Default Log Directory(/var/log) in Rsyslog for CentOS/RHEL 6,7
  10. How to verify the integrity of a file with md5 checksum

You May Also Like

Primary Sidebar

Recent Posts

  • grpck command – Remove corrupt or duplicate entries in the /etc/group and /etc/gshadow files.
  • xxd command – Expressed in hexadecimal form
  • sesearch: command not found
  • macof: command not found

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright