Leaving presentation mode.

Get Help in Red Hat Enterprise Linux

Dennis Kibbe

Mesa Community College

Keyboard Shortcuts

This slide presentation was created by B6Plus. The audio accompanying this presentation is AI-generated.

Module Outline

Today we're going to explore how to find and use documentation effectively. We’ll start with an introduction, then dig into manpages and put theory into practice. After that we'll look at the /usr/share/doc/ directory, review release notes and changelogs, and finish with a summary, resources, and a graded lab.

Learning Objectives

After completing the work in this module you will be able to:

By the end of this module, you’ll be able to: use manual pages to find command options; describe their layout; use man -k; navigate /usr/share/doc/; and explain the purpose of release notes and changelogs.

Introduction

As administrators, we encounter many commands we can’t memorize. Fortunately Red Hat Enterprise Linux gives us built-in documentation via manpages and online resources like the Red Hat Customer Portal.

Linux Manual Pages

Nearly every command has a man page—for example, mkdir. The man page shows you the command’s syntax, description, options like -p, and usage examples. It’s an essential reference tool.

Manual Page Sections

  1. Executable programs or shell commands
  2. System calls
  3. Library calls
  4. Special files
  5. File formats and configuration files
  6. Games
  7. Miscellaneous
  8. System administration commands
  9. Kernel routines

Manpages are grouped by section: 1 is user commands, 5 is configuration files, 8 is admin utilities. Today we’ll focus on these sections, as they are most relevant to system administration.

Parts of a Manual Page

Most manpages include sections like NAME, SYNOPSIS, DESCRIPTION, OPTIONS, EXAMPLES, FILES, and SEE ALSO. The ‘Synopsis’ quickly shows usage, while the ‘Description’ gives details.

Navigate Manual Pages

Manpages are viewed with a pager, usually less. You can scroll with space or f, go back with b, search with /term, and use n to find next matches. Quit with q.

Search for man Pages by Keyword

[user@host ~]$ man -k passwd
chgpasswd (8) - update group passwords in batch mode
chpasswd (8) - update passwords in batch mode
fgetpwent_r (3) - get passwd file entry reentrantly
getpwent_r (3) - get passwd file entry reentrantly
...
passwd (1) - update user's authentication tokens
passwd (1ossl) - OpenSSL application commands
passwd (5) - password file
passwd2des (3) - RFS password encryption
      

To search manpages by keyword, use man -k passwd. That lists results such as passwd(1) or passwd(5), helping you find the right documentation.

Search within a Manual Page

The /usr/share/doc/ directory includes documentation per package—configuration examples, templates, and changelogs. For instance, nano has sample.nanorc you can copy and customize.

Once you're in a manpage, you can press /, type a search term, and find it. If the first hit isn’t right, press n to move to the next occurrence.

The /usr/share/doc/ Directory

[user@host ~]$ ls /usr/share/doc/nano/examples/
sample.nanorc
      

The /usr/share/doc/ directory includes documentation per package—configuration examples, templates, and changelogs. For instance, nano has sample.nanorc you can copy and customize.

Guided Exercise

Read Manual Pages

Now let's do an exercise: open a manpage of your chosen command, search for an option or a config file pointer, and share what you find.

Release Notes

b6plus

Each Red Hat Enterprise Linux release comes with release notes that detail new features, removed programs, and more. It’s important to read them before installing or upgrading.

Changelogs

Changelogs accompany software packages, listing bug fixes and feature changes. These can be found under /usr/share/doc/ or within the package documentation.

Summary

  1. The man command is used to display the manual page for commands and configuration files.
  2. Manual pages are group by type and can be referenced by the section number.
  3. The -k option to the man command is used to find commands by keyword.
  4. Inside a manual page you can search for a term using the forward slash (/) character.
  5. Each new release of Red Hat Enterprise Linux comes with Release Notes which details new features and changes.
  6. The mandb command updates the manual page index.
  7. Release Notes and Changelogs provide important information about the latest release of a Linux distribution or program.

To summarize: use man for documentation, know section numbers, use man -k to search, search inside manpages, read release notes, update indexes with mandb, and review changelogs.

Resources

Here are some helpful resources: man7.org for manpages and tutorials, YouTube video for quick learning, Red Hat Enterprise Linux Product Documentation, and Keep a Changelog guide.

Graded Lab

Get Help in Red Hat Enterprise Linux

For this module, you’ll complete two quizzes instead of a full lab. There's extra credit available if you want more practice.

Thanks for Watching

MCC logo

Thank you for your attention and participation. If you have questions, please ask now or follow up via the course platform. See you in the next module!

Created on 17 February 2025 by Dennis Kibbe. Last modified on 9 June 2025 09:21:00 by DNK.