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, |
Hi -
Try this: Quote:
|
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, |
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 |
It works! It works! Thank you very much!
|
All times are GMT -5. The time now is 05:55 AM. |