LinuxQuestions.org
Visit Jeremy's Blog.
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 10-17-2007, 04:33 PM   #1
christianunix
Member
 
Registered: Oct 2007
Posts: 40

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


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

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

Original Poster
Rep: Reputation: 15
thanks a lot, hiko
 
Old 10-17-2007, 04:51 PM   #4
matthewg42
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 10:06 PM.
 
Old 10-17-2007, 08:37 PM   #5
christianunix
Member
 
Registered: Oct 2007
Posts: 40

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


Reply


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

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

All times are GMT -5. The time now is 11:26 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