Skip to content

Getting Help in Linux (man, info, --help)

One of the greatest strengths of Linux is that help is always available. Instead of memorizing every command, learn how to find the right information quickly using built-in documentation tools like man, info, and --help.


Learning Path

Linux Mastery → Module 1: Linux Fundamentals → Lesson 10

Difficulty: Beginner

Reading Time: 15 Minutes

Course Progress

Course: Linux Mastery

Module: Linux Fundamentals

Lesson: 10 of 10


What You'll Learn

After completing this lesson, you'll be able to:

  • Use the man command effectively
  • Navigate Linux manual pages
  • Understand the info documentation system
  • Use the --help option
  • Find documentation for almost any Linux command
  • Become a self-sufficient Linux user

Prerequisites

Before starting this lesson, complete:

  • Module 1 Lessons 1–9

Why Learn Linux Help Commands?

Many beginners try to memorize Linux commands.

Experienced Linux administrators don't.

Instead, they know how to find the information they need.

Linux provides excellent built-in documentation that is available even without an internet connection.

Learning these tools will save you countless hours throughout your career.


Types of Linux Documentation

Linux provides multiple ways to access help.

Need Help?



+----------------------+
| command --help       |
+----------------------+



+----------------------+
| man command          |
+----------------------+



+----------------------+
| info command         |
+----------------------+



Official Documentation

Each tool serves a different purpose.


Method 1 — Using --help

The quickest way to learn command syntax.

Example:

ls --help

Output:

Usage: ls [OPTION]... [FILE]...

List information about FILEs...

Try:

cp --help

mkdir --help

grep --help

find --help

Use --help when you need a quick reminder of command options.


Method 2 — Using man

The man (manual) command provides detailed documentation.

Syntax:

man command

Example:

man ls

This opens the complete manual page for the ls command.


Anatomy of a Man Page

A typical man page contains:

NAME

SYNOPSIS

DESCRIPTION

OPTIONS

EXAMPLES

FILES

SEE ALSO

Example:

NAME

ls - list directory contents
SYNOPSIS

ls [OPTION]... [FILE]...

The Synopsis shows how to use the command.


Navigating Man Pages

Useful keyboard shortcuts:

Key Action
↑ / ↓ Scroll one line
Space Next page
b Previous page
/ Search
n Next search result
q Quit

Example:

man grep

Search for "pattern":

/pattern

Exit:

q

Searching Manual Pages

Search manuals by keyword:

man -k network

Example output:

ping

ifconfig

ip

netstat

Equivalent command:

apropos network

This is useful when you know what you want to do, but not the exact command.


Manual Sections

Linux manuals are organized into sections.

Section Description
1 User Commands
2 System Calls
3 Library Functions
4 Device Files
5 Configuration Files
6 Games
7 Miscellaneous
8 System Administration

Example:

man 5 passwd

This opens the documentation for the passwd file format, not the passwd command.


Method 3 — Using info

Some GNU tools provide more detailed documentation through the info system.

Example:

info ls

Advantages:

  • More detailed than man
  • Hyperlinked navigation
  • Better for learning GNU utilities

Navigation:

Key Action
Arrow Keys Navigate
Enter Follow Link
l Back
q Quit

Finding Command Locations

Find where a command is installed:

which ls

Example:

/usr/bin/ls

Display all matching commands:

whereis ls

Output:

ls: /usr/bin/ls /usr/share/man/man1/ls.1.gz

Identify Command Type

Determine whether a command is:

  • Built-in
  • Alias
  • Executable

Example:

type cd

Output:

cd is a shell builtin

Learn About Shell Built-in Commands

Some commands don't have manual pages because they are part of the shell.

Example:

help cd

Other examples:

help export

help alias

help history

Production Perspective

In production environments, engineers rarely remember every command option.

Instead, they quickly check documentation using:

  • man
  • --help
  • info
  • apropos

Knowing how to find information is more valuable than memorizing syntax.


Hands-on Lab

View the manual for ls

man ls

Exit using:

q

View command help

grep --help

Search manual pages

man -k password

Find command location

which grep

Check command type

type cd

Open GNU documentation

info grep

Best Practices

  • Use --help for quick syntax.
  • Use man for detailed documentation.
  • Use info for GNU utilities.
  • Search manuals before searching the internet.
  • Read command examples carefully.

Common Mistakes

❌ Memorizing every command.

✅ Learn how to use Linux documentation effectively.


❌ Ignoring manual pages.

✅ The man command often provides everything you need.


❌ Searching Google for basic syntax.

✅ Try command --help first—it is usually faster.


Interview Questions

Beginner

  1. What is the purpose of the man command?
  2. What does --help display?
  3. What is the difference between man and info?
  4. Which key exits a man page?

Intermediate

  1. Explain Linux manual sections.
  2. What does man -k do?
  3. How do you determine whether a command is built into the shell?

Architect Level

  1. Why should engineers rely on built-in documentation?
  2. How does understanding Linux documentation improve troubleshooting?
  3. How would you teach a new engineer to become self-sufficient when learning Linux?

Summary

In this lesson, you learned:

  • How to use --help
  • How to navigate manual pages
  • How to use the info documentation system
  • How to search Linux manuals
  • How to identify command types
  • How to locate executables

One of the most valuable Linux skills is not remembering every command—it's knowing where to find reliable documentation quickly.


Key Takeaways

  • command --help provides quick command usage.
  • man offers detailed reference documentation.
  • info provides comprehensive GNU documentation.
  • man -k and apropos help you discover commands.
  • which, whereis, and type help identify command locations and types.

What's Next?

Module 1 Summary — Linux Fundamentals

Congratulations!

You have successfully completed Module 1 – Linux Fundamentals.

In Module 2: Linux Command Line Essentials, you'll start using Linux like a professional.

You'll learn:

  • Understanding the Shell
  • Bash Basics
  • Navigation Commands
  • Working with Files and Directories
  • Viewing File Contents
  • Searching Files
  • Wildcards
  • Pipes and Redirection
  • Command History
  • Productivity Tips

From this point onward, the course becomes highly hands-on, and every lesson will include real-world administration tasks and production-focused labs.