Ad space (banner)
🖥️Linux Lessons
Lesson 27 / 61

Reading a Command's Manual with man

man is for when "I don't know how to use this command." man stands for manual, and it displays the manual page describing a given command's detailed usage and full option list.

Use it in the form man command-name. You can scroll the displayed manual with the arrow keys, and press q to exit it.

Running man grep displays the manual page describing the grep command's purpose, syntax, and every option.

A common early mistake is not knowing how to exit the manual and feeling like the screen has frozen. It's written in dense English, but remembering that q gets you out helps a lot.

In real work, this is a trusted, primary source you can check for the exact, accurate specification of a new command or option — often faster to consult than a web search.

Linux
Try it (type this into the pseudo terminal)
man grep

🧑‍💻 You can type this command into the Linux pseudo terminal to try it yourself (this page itself has no interactive terminal).

Ad space (banner)
Ad space (in-article)