LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 05-23-2011, 09:57 AM   #1
needsleep
Member
 
Registered: Apr 2011
Location: Minneapolis
Distribution: CentOS 7
Posts: 80

Rep: Reputation: 0
centos 5.6: how to let man pages remain after exit


Running man, upon exit "erases" what man was displaying. I'd like to leave it up so I could scroll back through it. Is this a function of the PAGER or MANPAGER environment variables?

Thanks,
 
Old 05-23-2011, 10:03 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

Try this:
Quote:

This is caused by the termcap deinitialization sequence, so uncomment the PAGER line in /etc/manpath.config and append X.
 
Old 05-23-2011, 12:15 PM   #3
needsleep
Member
 
Registered: Apr 2011
Location: Minneapolis
Distribution: CentOS 7
Posts: 80

Original Poster
Rep: Reputation: 0
I don't have a file /etc/manpath.config, in centos 5.6, but I do have an /etc/man.config
This file has the line:
PAGER /usr/bin/less -is
The line was already uncommented.

I believe I set my PAGER variable in a startup file to "less -s". I will try to figure out what startup file that was.

Thanks,
 
Old 05-23-2011, 01:27 PM   #4
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

Sorry I wasn't clearer: "less -X" will prevent "less" from erasing the contents of the man page after you exit.

Adding the "-X" to your "/etc/man.config" (as opposed to some other, global configuration) will limit the changed behavior to man pages only (arguably a Good Thing).

That's all I was trying to say

'Hope that helps .. PSM
 
Old 05-23-2011, 02:32 PM   #5
needsleep
Member
 
Registered: Apr 2011
Location: Minneapolis
Distribution: CentOS 7
Posts: 80

Original Poster
Rep: Reputation: 0
It works! It works! Thank you very much!
 
  


Reply



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
To properly exit man pages grautu Linux - Newbie 7 08-18-2012 06:07 AM
how to exit/quit man? Mountain Linux - Newbie 4 11-07-2007 05:49 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

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

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