man opens the official manual for a command. Learn which sections to read first, how to search for the option you need, and how to get out with q, by running the commands in a real terminal in your browser.
Updated: 2026-09-05
man command
Opens the official manual for that command.
On a real machine it is displayed by less, so q takes you back.
$ man ls | head -12
NAME
ls - list directory contents
SYNOPSIS
ls [OPTION]... [FILE]...
DESCRIPTION
List information about the FILEs (the current directory by default).
OPTIONS
-a, --all
do not ignore entries starting with .
The | head -12 is only there to keep this excerpt short.
Typing man ls on its own opens the whole page.
You are not meant to read it top to bottom. This order gets you what you need.
| Section | What it gives you |
|---|---|
| NAME | One line. Confirms what the command is for |
| SYNOPSIS | The shape of the command line, and where options go |
| DESCRIPTION | The details, including what happens by default |
| OPTIONS | The flag that matches what you are trying to do |
| EXAMPLES | Something you can copy |
NAME and SYNOPSIS are usually enough. Once you spot the option you want, read only that entry.
Type / followed by the text to jump straight there.
/-l finds the description of -ln goes to the next matchq closes the pageOption lists are long, so searching beats scrolling.
man is where you go to check the option you half remember.
| Situation | What you type |
|---|---|
| Confirm what an option does | man ls |
| Just remind me of the syntax | ls --help |
| Learn to use man itself | man man |
| Find out where a command lives | which ls |
q gets you out.
Same key as less.
A manual page is read-only, so quitting changes nothing.
Not every command has a page.
$ man nosuchcmd
No manual entry for 'nosuchcmd'
Either it is a typo, the command is not installed, or it is a shell builtin.
Do not try to read the whole thing. Manual pages are written to be complete, not to be read start to finish. Skimming for the section you need is the intended use.
webterm.appthis site
Advanced Terminal Commands
Learn commands for specific situations
learn.webterm.appa separate site

Commands stick when they show up in a real sequence of work, not one at a time. There is a course that builds them up in order.
See the course