How to exit a Linux man page
How do I exit a man page when finished viewing? Although the answer to this question is well known, due to how many times I have been asked how to exit a man page or info page once done viewing, I thought I should put up a quick answer. Linux manual pages aka. man pages are provided with almost all software available for Linux and house important documentation about a program and explain how to use it.
Linux manual pages can be easily accessed via the terminal by typing man program-name.
Manual or info page navigation can be accomplished by using the up and down arrow keys or in some cases, by pressing enter for more
Once you are finished viewing a manual or info page, you can exit or close the manual by simply pressing q. This will return you to the command prompt within the open terminal.
Example usage of man page:
- Open a terminal and type man ftp (to open the manual for the ftp application)
- Use the up and down arrow keys on your keyboard to read the document.
- Once finished press q on your keyboard to quit reading the manual.
Note: Info can be used in place of man to access informational pages. For example: info ftp