LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   To properly exit man pages (http://www.linuxquestions.org/questions/linux-newbie-8/to-properly-exit-man-pages-477050/)

grautu 08-24-2006 04:09 PM

To properly exit man pages
 
Hi!
I would be interested to know a keyboard shortcut for properly exiting man page files. I do not assume using any X terminal, any console under X or mouse anyway: just thinking of a pure shell session. Clearly Ctrl+Z is not a good choice, though it does work to some extent.
Could anybody please help me?
Thanks

pljvaldez 08-24-2006 04:16 PM

q

This message is too short! :D

timothyb89 08-24-2006 04:24 PM

Q is the esieset way to do it, but Control+C works too.

grautu 08-24-2006 07:02 PM

Thanks!
Q is OK but Ctrl+C always failed in my case.

zanier 08-18-2012 03:17 AM

CTRL+C doesn't work on my machine :hattip: q is the fastest way.
CTRL+V doesn't work too:confused: i really need this shortcut ...........

cynwulf 08-18-2012 04:31 AM

q is the correct way. At the bottom of man pages there is a footer containing the wisdom: "(press h for help or q to quit)"

For more info

Code:

$ man man

David the H. 08-18-2012 06:04 AM

man doesn't display the man pages itself, it opens up them up in the default pager program set in your shell (unless told to do otherwise). This is nearly always less in most Linux distributions.

Read man man and man less for details on their operation.

m.a.l.'s pa 08-18-2012 06:07 AM

Since man pages are displayed by less, you can type h from within a man page for the "summary of less commands," where you'll find:


Code:

q  :q  Q  :Q  ZZ    Exit.


All times are GMT -5. The time now is 06:50 AM.