Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-17-2007, 05:33 PM   #1
Registered: Oct 2007
Posts: 40

Rep: Reputation: 15
How do I get out of a man page?

thanks a lot
Old 10-17-2007, 05:35 PM   #2
Registered: Oct 2007
Location: Penn Valley, CA.
Distribution: Arch, Ubuntu, Fedora, Mint
Posts: 52

Rep: Reputation: 16
q to quit. If you are default setup.
1 members found this post helpful.
Old 10-17-2007, 05:41 PM   #3
Registered: Oct 2007
Posts: 40

Original Poster
Rep: Reputation: 15
thanks a lot, hiko
Old 10-17-2007, 05:51 PM   #4
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
Hiko provided the short answer. The long answer goes like this:
When the man program displays a manual page, it sends the output through a pager program. The job of the pager program is to print the output. The simplest pager program could just print the whole manual page without waiting... this would scroll off the top of the terminal very quickly.

These days terminal emulator programs can scroll up to see what has gone "off the top of the screen", but in the past this wasn't always the case - not when a terminal was one of these. To make life easier, the man program will check to see if the PAGER environment variable is set, and if it is, it will send the manual page output to this program to view. A simple pager is the more program, which just prints to the terminal what it gets as input. However, if it has printed a whole screen's worth of output, it waits for the user to press a key before it continues. This behaviour is presumably where the name pager comes from - displaying one page at a time.

As terminals got more sophisticated, features such as being able scroll back became feasible. A common pager program used in many Linux distributions is less. The name is a play on the name more. less has many nice features, like being able to search the input file for strings and regular expression patterns. There's a whole bunch of features in there. To see what they are, you should read the less manual page.

The most basic keys are:
  • Up and down cursors for scrolling one line at a time
  • Space to move forward a whole page
  • q to quit
  • / to search for a regular expression pattern
  • n to repeat the last search

Last edited by matthewg42; 10-17-2007 at 11:06 PM.
Old 10-17-2007, 09:37 PM   #5
Registered: Oct 2007
Posts: 40

Original Poster
Rep: Reputation: 15
thanks again, Matt!!


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
getting out of a man page! naijaguy Linux - Newbie 11 04-10-2018 06:21 PM
pthread_create man page yakoub Slackware 7 08-20-2007 12:53 PM
man alsamixer not showing the man page nosaku Slackware 1 12-20-2004 09:52 AM
Is there a man page on how to use man page? jdruin Linux - Software 2 10-30-2004 10:29 AM
man page? chandan Linux - Newbie 1 07-16-2003 08:31 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:15 AM.

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