Linux for Developers Course
Linux for Developers
/
Beginner

man Pages

Definition

The system's built-in manual pages. The `man` command formats and displays the official documentation for almost any command or configuration file.

Explain Like I'm New

The built-in encyclopedia. If you forget how a command works, you don't need the internet. You just type `man` followed by the command, and it explains everything it does.

Real World Example

You forget the flag to make `rm` delete a folder recursively. You type `man rm`. The screen changes to a text document. You read that `-r` stands for recursive. You press `q` to quit the manual and return to the terminal.

Common Use Cases

  • •Learning commands
  • •Finding obscure flags

Interview Questions

basic

  • How do you exit or close a `man` page once you are done reading it?

intermediate

  • What is the difference between `man` and the `--help` flag (e.g., `ls --help`)?

Flash Cards

Question

How to exit?

Click to reveal answer
Answer

Press the `q` key (for quit).

Question

man vs --help?

Click to reveal answer
Answer

The `--help` flag prints a very short, quick summary directly into your terminal. `man` opens a dedicated, comprehensive, multi-page textbook about the command.