• 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. “Couldn’t find device with uuid [UUID]” – error whith pvs command
  2. How to block non-root user from creating crontab entry in Linux
  3. Secure Shell: Chrome Web Browser ssh client
  4. makepkg Command Examples in Linux
  5. adduser Command Examples in Linux
  6. a2query Command Examples in Linux
  7. chkconfig: command not found
  8. cpufreq-set : command not found
  9. conntrack: command not found
  10. Can’t start X11 applications after “su” or “su -” to another user

You May Also Like

Primary Sidebar

Recent Posts

  • pw-cat Command Examples in Linux
  • pvs: command not found
  • pulseaudio: command not found
  • pulseaudio Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright