• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar

The Geek Diary

HowTos | Basics | Concepts

  • Solaris
    • Solaris 11
    • SVM
    • ZFS
    • Zones
    • LDOMs
    • Hardware
  • Linux
    • CentOS/RHEL 7
    • RHCSA notes
    • SuSE Linux Enterprise
    • Linux Services
  • VCS
    • VxVM
  • Interview Questions
  • oracle
    • ASM
    • mysql
    • RAC
    • oracle 12c
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Hadoop
    • Hortonworks HDP
      • HDPCA
    • Cloudera
      • CCA 131

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/*
RHEL 7 – RHCSA Notes (Cheat Sheets)

Filed Under: Linux

Some more articles you might also be interested in …

  1. How To Check World Wide Port Names (WWPN) of Tape Drives Attached to Linux host
  2. CentOS / RHEL 5,6 : How to reinstall GRUB loader from rescue mode
  3. CentOS / RHEL 7 : Booting process
  4. How to connect to an Active Directory Domain using Realmd (Configure CentOS/RHEL 7 as active directory client)
  5. Linux OS service ‘dhcpd’
  6. Linux / UNIX : Examples of find command to find files with specific sets of permissions
  7. YUM command examples to install, remove and upgrade packages
  8. How to disable NetworkManager on CentOS / RHEL 7
  9. How to configure iSCSI Initiator (client) in CentOS / RHEL 7
  10. The locate Command in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • Linux OS Service ‘cups’
  • “Warning: RPMDB altered outside of yum.” – On installing/updating/erasing a package using YUM command
  • How to Generate Unique IDs For MysQL Cluster Backups
  • Oracle 11g – New ASM features
  • ASM Fast Mirror Resync Feature – Example To Simulate Transient Disk Failure And Restore Disk
  • Archives
  • Contact Us
  • Copyright

© 2019 · The Geek Diary