How to quit man (less) and keep man info on screen?
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.