

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 4
click for more info
No active XP Potion
Accept a Quest
Login to submit answers
Back
ctrl+,
Next
ctrl+.
The man command is short for "manual". It's a program that displays the manual for other programs.

I know that manuals and documentation can feel intimidating, heck, that's why there are courses like this one to give you a gentler introduction. That said, manuals and documentation will become more useful to you as you become a more experienced developer. They're not as scary as they seem when you actually take the time to read them.
The man command will only work for programs that it has a manual for, but most built-in commands and Unix programs are supported. You just pass the name of the command as an argument. The most intuitive place to start, of course, is reading the manual's manual:
# open the man pages for the 'man' command
man man
Most people don't just read man pages for fun. More often, the manual is used as a reference to quickly look up usage or special flags.
You can search for text in the manual by pressing the / key and typing your search, then pressing enter. Let's try to look up what the -r flag does for the ls command:
man ls
# type '/-r' to start searching
# press 'n' to jump to the next result
# press 'N' to go back if you went too far
As a systems person, the grep command will be your best friend. It has a lot of power, but it can be a little confusing to use.
grep manual.q.Read the first couple paragraphs of the grep manual and answer the question(s).
What does the lowercase '-v' flag do?