Login or Register to Ask a Question and Join Our Community


How to stop linux man pages from clearing on exit?


 
Thread Tools Search this Thread
Operating Systems Linux How to stop linux man pages from clearing on exit?
# 1  
Old 03-01-2007
How to stop linux man pages from clearing on exit?

Whenever I quit out of reading a man page, it clears the screen.

I do not like this behavior, as I'd like to keep part of the man page on the screen while I type out a command.

How do I stop this behavior?
# 2  
Old 03-01-2007
One way is to open a new terminal, type the command there while the man is on another one ...
# 3  
Old 03-01-2007
Edit /etc/man.config and replace the PAGER line with /bin/more. If you don't have root access or don't want to change everyone's pager, simply set PAGER=/bin/more; export PAGER in your .profile or .bashrc file in your home directory.

Carl
# 4  
Old 03-01-2007
try to export $PAGER=less
# 5  
Old 03-01-2007
Quote:
Originally Posted by sysgate
try to export $PAGER=less
You can't export $PAGER=less. You have to remove the $. In addition, as a matter of security I always put the full path down. So you'd want to "export PAGER=/usr/bin/less". That's the default though if you check your /etc/man.config file which is what's causing the problem with the screen clearing which bugs me too. That's why I switched mine to /bin/more. Now 'q' just exits without clearing the screen.

Carl
# 6  
Old 03-01-2007
yeah, I added $ by mistake, before that I used echo $PAGER to see if it's set on my system.
# 7  
Old 03-02-2007
Thank you everyone for your kind suggestions. I have found them very helpful.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Man pages for Pthreads

"how to see the man pages related to pthreads". while executing the command man pthread_t . im getting the following error!!!!! No manual entry for pthread. (3 Replies)
Discussion started by: Muthukumar U
3 Replies

2. HP-UX

Looking for some man pages.

Can anyone supply me with the man pages for: omnidatalist omnibarlist omnisap.exe I prefer the source man pages in nroff format. A clue about the software bundles which supply these man pages is fine as well. OS: HP-UX TIA (11 Replies)
Discussion started by: sb008
11 Replies

3. Solaris

MAN PAGES

Hi everyone, I have a small query, in solaris the man pages get displayed on half of the terminal , can i get a full terminal or full screen display ?:) (2 Replies)
Discussion started by: M.Choudhury
2 Replies

4. UNIX for Dummies Questions & Answers

Man pages on Solaris 10

Hi, I want to install man pages package from solaris 10. Solaris 10 has already been installed on my servor but I have to add the man pages packages. I search for a long time on internet this package but I didn't find a compatible one... So I downloaded Solaris 10 from Sun site to get this... (1 Reply)
Discussion started by: MasterapocA
1 Replies

5. UNIX for Dummies Questions & Answers

man pages

When reading man pages, I notice that sometimes commands are follwed by a number enclosed in parenthesis. such as: mkdir calls the mkdir(2) system call. What exactly does this mean? (4 Replies)
Discussion started by: dangral
4 Replies

6. UNIX for Dummies Questions & Answers

man pages for while, for loops..

Hi, How can I see the man pages for while, for, if and other shell script control structures.. I can't say just "man while" at least on hp unix... Do I need to use any special option? Thank you! Vishnu. (2 Replies)
Discussion started by: Vishnu
2 Replies

7. UNIX for Dummies Questions & Answers

man pages

Hi folks, I want to know all the commands for which man pages are available. How do i get it? Cheers, Nisha (4 Replies)
Discussion started by: Nisha
4 Replies

8. UNIX for Dummies Questions & Answers

man pages

Hi, I've written now a man pages, but I don't knwo how to get 'man' to view them. Where have I to put this files, which directories are allowed?? THX Bensky (3 Replies)
Discussion started by: bensky
3 Replies

9. UNIX for Dummies Questions & Answers

man pages creating

Hi, I wnat to create my own man pages, but I can't find a good description of the troff language. Knows somebaody a good docu including examples?? Thx Bensky (2 Replies)
Discussion started by: bensky
2 Replies

10. UNIX for Dummies Questions & Answers

Man pages

Hello , I just installed openssh in my system . I actually tried to man sshd but it says no entry , though there is a man directory in the installation which have the man pages for sshd . Can anyone tell me how should i install these man pages . DP (2 Replies)
Discussion started by: DPAI
2 Replies
Login or Register to Ask a Question

Featured Tech Videos