Hello! Welcome to your seventh lesson in the "Linux Fundamentals and System Startup" module.
In our last lesson, you successfully installed a complete Ubuntu Linux operating system in your virtual machine. You now have a safe and fully functional environment to practice your skills for the CompTIA Linux+ exam.
Today, we'll learn one of the most vital skills for any Linux user: how to find help. It's impossible to memorize every command and option, but Linux is designed to be self-documenting. By mastering the built-in help systems, you become a self-sufficient and resourceful administrator.
This lesson directly addresses the learning outcome: Access and interpret system documentation using man and info commands. We'll explore these two core documentation systems, learn how to navigate them, and, most importantly, understand how to interpret the information they provide.
Let's start by opening the terminal in your new Ubuntu VM. You can find it by clicking the "Activities" button in the top-left corner and searching for "Terminal".
1. The man Command: Your Go-To Manual
The man command (short for "manual") is the traditional and most common way to access documentation on a Linux system. Nearly every command, utility, and even configuration file has an associated "man page".
To view a man page, you simply type man followed by the name of the command you want to learn about.
Try it now:
man ls
This will open the manual for the ls command, which is used to list directory contents. You'll see a wall of text displayed in a "pager" program, which is usually less. Let's learn how to navigate it.
Navigating Man Pages
Navigating these pages efficiently is a key skill. While you can use your mouse wheel or Page Up/Down keys, learning the standard keyboard shortcuts will make you much faster.
Mastering Linux Man Pages - A Definitive Guide
The video 'Mastering Linux Man Pages - A Definitive Guide' by Linux Training Academy provides an excellent and thorough walkthrough of how to navigate and search within man pages. We'll focus on the essential movement and search commands.
Watch from the beginning to 02:40 to learn basic movement, and then from 05:46 to 08:17 to learn about searching. Focus on these key commands: Movement: q: Quit the man page. j or Arrow Down: Move down one line. k or Arrow Up: Move up one line. Spacebar or Ctrl+F: Move down one full screen (page down). b or Ctrl+B: Move up one full screen (page up). g: Go to the very beginning of the page. G (Shift+g): Go to the very end of the page. Searching: /pattern: Search forward for pattern. ?pattern: Search backward for pattern. n: Go to the next search match in the same direction. N: Go to the previous match (reverses search direction).
Practice these navigation and search commands in the man ls page. For example, try searching for the word "long" using /long.
Interpreting a Man Page
Just seeing the text isn't enough; you need to understand its structure and syntax. Man pages follow a standard format.

The most important sections are:
- NAME: The command name and a one-line description.
- SYNOPSIS: The command's syntax, showing how to structure it with options and arguments.
- DESCRIPTION: A detailed explanation of what the command does.
- OPTIONS: A list of all the flags (like
-lor--all) that modify the command's behavior. - EXAMPLES: Practical examples of how to use the command. This is often the most useful section!
- SEE ALSO: A list of related commands and man pages.
The SYNOPSIS section has its own special language. Understanding it is key to interpreting how to use any command correctly.
Mastering Linux Man Pages - A Definitive Guide
Let's return to the 'Mastering Linux Man Pages' video. The presenter does a fantastic job of breaking down the conventions used in the SYNOPSIS section and then applies them to the ls command.
First, watch from 08:17 to 10:15 to understand the conventions. Then, watch from 10:15 to 11:30 to see how these rules apply to the ls synopsis. Pay close attention to the meaning of: bold text: Type it exactly as shown. underlined or italic text: Replace it with an appropriate value (e.g., replace file with an actual filename). [ brackets ]: The item is optional. | (pipe): Choose one of the separated options; they are mutually exclusive. ... (ellipsis): The preceding item can be repeated.
Test your understanding!
Open the man page for the cp command (man cp). Look at the first line of its SYNOPSIS section. Based on the conventions you just learned, what does cp [OPTION]... SOURCE... DIRECTORY tell you?
Show answer
cp: The command you must type.[OPTION]...: You can provide zero, one, or multiple options (e.g.,-v,-r). It's optional because of the brackets[]and repeatable because of the ellipsis....SOURCE...: You must provide at least one source file or directory, and you can provide many. It's not optional (no brackets) but is repeatable (...).DIRECTORY: You must provide a single destination directory. It is not optional and not repeatable.
Man Page Sections and apropos
Man pages are organized into numbered sections. For the Linux+ exam, it's useful to know a few:
- 1: Executable programs or shell commands
- 5: File formats and conventions (e.g.,
man 5 passwddescribes the/etc/passwdfile) - 8: System administration commands (usually for
root)
Sometimes, a term exists in multiple sections. For instance, passwd is a command (section 1) and a file format (section 5). You can specify the section you want:
man 1 passwd # Shows the man page for the passwd command
man 5 passwd # Shows the man page for the /etc/passwd file format
What if you don't know the exact command name? You can search the man page names and descriptions using apropos (or man -k).
apropos "copy file"
This will list all man pages that have "copy" or "file" in their short description, helping you discover commands like cp, scp, and install.
2. The info Command: An Interactive Guide
While man is the universal standard from the old Unix days, the GNU Project (which created many of the tools in Linux, including bash) developed its own documentation system: info.
info documents are structured like a digital book with hyperlinked "nodes". They are often more tutorial-like and in-depth than man pages, especially for complex GNU utilities.
Learn The Basics - Man Pages Versus Info Pages
The video 'Learn The Basics - Man Pages Versus Info Pages' by DistroTube gives a great high-level comparison of the two systems and explains why both exist. It also demonstrates how to navigate the info system.
Watch from 04:29 to 06:15. The presenter explains what info pages are, their origin with the GNU project, and how to navigate their hyperlinked structure.
To see it in action, try this:
info ls
You'll notice it looks different from a man page. Here are the essential navigation keys for info:
n: Go to the next node.p: Go to the previous node.u: Go up to the parent node.Tab: Move to the next hyperlink on the current page.Enter: Follow the selected hyperlink.q: Quit.
For a great example of info's power, look at the documentation for all the core utilities at once:
info coreutils
This brings you to a top-level menu. You can navigate into the "Individual utilities" node to find detailed information on ls, cp, mv, rm, and many others.
When to use man vs. info?
- Use
manfor a quick reference on nearly any command. It's your first stop. - Use
infowhen you want a deeper, more conceptual understanding of a GNU utility (likebash,sed,find, or anything incoreutils).
3. Quick Help and Shell Built-ins
Sometimes, even a man page is too much. For a quick reminder of a command's options, most commands support a --help flag.
ls --help
cp --help
This prints a short usage summary directly to your terminal. It's perfect when you know the command but just forgot a specific option.
Finally, some commands aren't separate programs. They are built directly into the shell (the command-line interpreter, bash in our case). Commands like cd, pwd, and echo are "shell built-ins".
You can check a command's type with the type command:
type ls # Output will show ls is a file, e.g., /bin/ls
type cd # Output will say "cd is a shell builtin"
Shell built-ins do not have their own man pages. To get help for them, you use the shell's own help command.
help cd
Test your understanding!
What happens when you run man cd versus help cd in your terminal, and why are they different?
Show answer
When you run man cd, you'll likely get a man page for bash or a generic page describing shell built-ins. This is because cd is not a standalone program and doesn't have its own dedicated man page.
When you run help cd, you get a concise help message specifically for the cd command. This is the correct way to get help for a shell built-in, as you are asking the shell (bash) to describe one of its own internal commands.
Conclusion
You now have a complete toolkit for finding documentation and help directly within your Linux system. This ability to "help yourself" is fundamental to becoming a proficient user and is heavily emphasized in the Linux+ exam.
Key Takeaways:
man: The standard manual system. Use it first for almost any command. Navigate withq,/, and arrow keys. Interpret the SYNOPSIS using its special conventions.apropos: Searches man page descriptions to help you find commands when you don't know the exact name.info: A detailed, hyperlinked documentation system, ideal for in-depth learning about GNU tools.--help: A quick option summary for most commands.help: The specific command to get help for shell built-ins likecd.

In our next lesson, we will build on the concept of shell built-ins and take a closer look at the shell itself. We will explore what a shell is and distinguish between different shell types like bash, sh, and zsh.