man opens the manual page of the ls command. You can move up and down with the arrow keys and press q to quit viewing the man page. Usually, the man pages are opened with less so the keyboard shortcuts for less command work in man as well.
How do I read a mans page file?
The groff (GNU troff) software is a typesetting package which reads plain text mixed with formatting commands and produces formatted output.
- Option #1: Use man command. The syntax is: …
- Option #2: Use nroff command. …
- Option #3: Set MANPATH shell variable.
How do I view man pages in Unix?
Display a Man Page in the Terminal App
Type man and the name of a tool or API whose documentation you want to access, and press Return. Because the man page is larger than the window, Terminal displays only the first part of the page. Press Space to display subsequent parts, or press Q to exit the man tool.