← Lessons/Reading the Manual (man pages)
← Reading the Manual (man pages)

Explain the sections

Learn

Manual sections

Manuals are split into numbered sections by kind of thing, so the same name can appear in more than one:

  • 1: user commands (ls, grep)
  • 5: file formats and config files (e.g. passwd the file)
  • 8: system administration commands

So passwd (1) is the command you run to change a password, while passwd (5) documents the /etc/passwd file format: different pages, same name, told apart by the section number.

This step isn't a command: answer the questions below.

Answer the questions below about manual sections.

What does the (1) in ls(1) mean?
Why does man 5 passwd need the section number?
Sign in to check your answers

Interview prep

Knowing how to read the manual is what lets you pick up any command on the job; interviewers notice when you reach for man instead of guessing.

You're on a server with no internet and don't remember a command's flags. What do you do?

Read its manual in place: man <cmd> opens the page, and man <cmd> | grep <keyword> jumps straight to the flag I need. If I don't even know the command's name, apropos <keyword> (a.k.a. man -k) searches every manual's summary by topic, and whatis <cmd> gives the one-line reminder. The section number in ls (1) tells me which manual section the page lives in — handy when a name exists in several (e.g. passwd (1) the command vs passwd (5) the file).

sandbox@opspath: ~
OpsPath sandbox · Debian GNU/Linux 12 · GNU bash 5.2
Each command runs in a fresh, isolated sandbox with this lesson's files in ~.
Nothing carries over between commands, so chain with && or | when you need to.
Type a command and press Enter. ↑/↓ history · Ctrl+L clear · Ctrl+C cancel line
# ── Step 5 · Explain the sections ──
# Sign in to run commands — it's free.