All Modules / Module 3 / Lesson 4 of 4

Getting help anytime with man

3 minute read

Every Command Has a Manual

Forgot what a command does? Can't remember the flags? There's a built-in manual for almost every command.

The man Command

man (short for "manual") shows documentation for any command:

1

Open the manual for ls:

man ls
2

Use / or Space to scroll

3

Press q to quit

Try a Few

Look up any command you've learned:

man cp

Learn all the options for copying files

man rm

Understand the dangers and safety flags

man cat

See all the formatting options

Quick Help With --help

Many commands also support --help for a shorter summary:

ls --help

This is less detailed than man but often enough to jog your memory.

Key Takeaway

man commandname opens the full manual. Press q to exit. For a quick summary, try commandname --help.