LinuxQuestions.org
Visit Jeremy's Blog.
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 03-07-2004, 07:53 PM   #1
peb
LQ Newbie
 
Registered: Nov 2003
Location: Melbourne, Australia
Distribution: mandrake 9.2
Posts: 12

Rep: Reputation: 0
How to quit man (less) and keep man info on screen?


Often I read a man page and want to refer to the information when I use it. The problem is that when you quit the screen clears and wipes it out. Admittedly this is a minor problem because I can always start another xterm , but it is a bit irritating. Is there a way to stop this destructive behaviour?
peb
 
Old 03-07-2004, 08:11 PM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
I don't understand why you would want to exit less if you want to see the man page. But hit ctrl-z if you want to do something else in the same term and 'fg' when you're done and want the man page back. If that's what you're asking. Check out job control in general.
 
Old 03-07-2004, 08:32 PM   #3
peb
LQ Newbie
 
Registered: Nov 2003
Location: Melbourne, Australia
Distribution: mandrake 9.2
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
I don't understand why you would want to exit less if you want to see the man page.
Say I want to find how to use command foo. I type
Code:
man foo
which displays a nice description of how to use foo. I then want to go back to the command line and try this out, so of course I need to get out of man and back to the shell.
To do this I can type q (quit command in man) and I can type Ctrl-Z to suspend man, but in both cases the useful text vanishes from my screen! I want to be able to read the text after I quit / suspend man

peb

Last edited by peb; 03-07-2004 at 08:34 PM.
 
Old 03-07-2004, 09:02 PM   #4
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Oh. Try 'man -P more manpage'. Maybe there's a way to get less to not clear, but I doubt it in this case.

But you're missing the beauty of multiple vts and infinite ptys.
 
Old 03-25-2004, 09:21 PM   #5
doneanddone
LQ Newbie
 
Registered: Mar 2004
Location: Kanada
Distribution: sarge
Posts: 1

Rep: Reputation: 0
This is caused by the termcap deinitialization sequence, so uncomment the PAGER line in /etc/manpath.config and append X.

~

Last edited by doneanddone; 03-26-2004 at 08:59 AM.
 
Old 03-25-2004, 09:46 PM   #6
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Awesome. For Slackware users, just add the X option to the PAGER line in /usr/lib/man.conf instead.

Thanks. (Excellent first post. Welcome.)
 
Old 03-25-2004, 09:57 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
/usr/share/misc/man.conf in my 8.1 ;}


Cheers,
Tink
 
Old 03-25-2004, 10:02 PM   #8
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
I'd think the guys who do the FHS would find it hard to type with their arms in those restraining jackets.
 
  


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
man alsamixer not showing the man page nosaku Slackware 1 12-20-2004 08:52 AM
man or info, info or man?! Tuttle Linux - General 2 12-12-2004 10:45 AM
man vs. info Berhanie Slackware 2 12-17-2003 12:20 AM
man/info pages no help dunbar Linux - Newbie 25 01-21-2003 12:48 PM
Compiling packages on RH 7.1 causes man files to be named man.gz mmboam Linux - General 0 05-09-2001 06:47 PM

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

All times are GMT -5. The time now is 06:41 PM.

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