LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-24-2006, 04:09 PM   #1
grautu
Member
 
Registered: Jul 2005
Posts: 142

Rep: Reputation: 15
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
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 08-24-2006, 04:16 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 281Reputation: 281Reputation: 281
q

This message is too short!
 
2 members found this post helpful.
Old 08-24-2006, 04:24 PM   #3
timothyb89
Member
 
Registered: Jul 2006
Location: Colorado, USA
Distribution: openSuSE 11.4
Posts: 118

Rep: Reputation: 15
Q is the esieset way to do it, but Control+C works too.
 
Old 08-24-2006, 07:02 PM   #4
grautu
Member
 
Registered: Jul 2005
Posts: 142

Original Poster
Rep: Reputation: 15
Thanks!
Q is OK but Ctrl+C always failed in my case.
 
Old 08-18-2012, 03:17 AM   #5
zanier
LQ Newbie
 
Registered: Nov 2011
Distribution: ubuntu/debian
Posts: 29

Rep: Reputation: Disabled
CTRL+C doesn't work on my machine q is the fastest way.
CTRL+V doesn't work too i really need this shortcut ...........
 
Old 08-18-2012, 04:31 AM   #6
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 2,727

Rep: Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367Reputation: 2367
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
 
Old 08-18-2012, 06:04 AM   #7
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
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.
 
Old 08-18-2012, 06:07 AM   #8
m.a.l.'s pa
Member
 
Registered: Oct 2007
Location: albuquerque
Distribution: Debian, Arch, Kubuntu
Posts: 366

Rep: Reputation: 139Reputation: 139
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.
 
  


Reply

Tags
exit, man, page, shortcut


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
xterm is not displaying man pages properly geletine Linux - Software 1 08-15-2006 08:48 PM
exit a man page? gnuoob Linux - Newbie 2 08-27-2005 01:39 PM
man pages: how to exit? KlaymenDK Linux - Newbie 2 06-25-2004 08:03 AM
Exit man (elegantly) verstapp Linux - Newbie 2 03-01-2004 07:29 PM
Exit man, switch processes Bellrang Linux - Newbie 4 04-03-2003 10:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration