Difference between revisions of "Shell/Display a Manual"

From Coder Merlin
m (Editorial review and minor corrections)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
== Display a Manual ==
Finally, let's try out one more very helpful command. If we want to learn more about a command, we can read its ''manual''. We do this with the command '''man'''. As an example, look at the man page for the emacs command. Type '''man emacs'''.  
Finally, let's try out one more very helpful command. If we want to learn more about a command we can read its ''manual''. We do this with the command '''man'''. As an example, look at the man page for the emacs command. Type '''man emacs'''.  


{{ConsoleLine|john-williams@codermerlin:~/Merlin$ |man emacs}}
{{ConsoleLine|john-williams@codermerlin:~/Merlin$ |man emacs}}


The screen will be filled with information about the emacs command. While a man page is displayed we can use the following keys to navigate:
The screen is filled with information about the emacs command. While a man page is displayed, we can navigate by using the following keys:


* Typing {{Key|f}} will move us forward one page in the manual
* Typing {{Key|f}} moves us forward one page in the manual
* Typing {{Key|b}} will move us backward one page in the manual
* Typing {{Key|b}} moves us backward one page in the manual
* Typing {{Key|q}} will quit (exit the manual)
* Typing {{Key|q}} quits (exits the manual)


Exit the manual now.
Exit the manual now.

Latest revision as of 14:03, 22 February 2023

Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder

Finally, let's try out one more very helpful command. If we want to learn more about a command, we can read its manual. We do this with the command man. As an example, look at the man page for the emacs command. Type man emacs.

john-williams@codermerlin:~/Merlin$  man emacs

The screen is filled with information about the emacs command. While a man page is displayed, we can navigate by using the following keys:

  • Typing f moves us forward one page in the manual
  • Typing b moves us backward one page in the manual
  • Typing q quits (exits the manual)

Exit the manual now.