Tech Tip: Color man Pages
July 2nd, 2009 by Jose Filipe Lopes Santos in
To add a bit of color to your man pages install the most pager. For most DEB based distros:
$ sudo apt-get install most
For most RPM based distros:
$ yum install most
Failing these, get the source here.
Now set the pager used by man and try running man:
$ export MANPAGER="/usr/bin/most -s # or export MANPAGER="/usr/local/bin/most -s" $ man bash
Add the setting of MANPAGER to your shell ~/.profile to make the setting available when you login.
__________________________
| Attachment | Size |
|---|---|
| color-manpages.jpg | 141.53 KB |
Special Magazine Offer -- Free Gift with Subscription
Receive a free digital copy of Linux Journal's System Administration Special Edition as well as instant online access to current and past issues. CLICK HERE for offer
Linux Journal: delivering readers the advice and inspiration they need to get the most out of their Linux systems since 1994.
Subscribe now!
The Latest
Newsletter
Tech Tip Videos
- Nov-04-09
- Oct-29-09
- Oct-26-09
Recently Popular
From the Magazine
December 2009, #188
If last month's Infrastrucuture issue was too "big" for you then try on this month's Embedded issue. Find out how to use Player for programming mobile robots, build a humidity controller for your root cellar, find out how to reduce the boot time of your embedded system, and if you're new to embedded systems find out the basics that go into one. You can also read about the Beagle Board, the Mesh Potato and a spate of other interestingly named items. And along with our regular columns don't miss our new monthly column: Economy Size Geek.
Delicious
Digg
StumbleUpon
Reddit
Facebook








An Alternative for Ubuntu
On July 5th, 2009 cantormath (not verified) says:
In terminal
Install most
:~$sudo apt-get install most
Let most format your man pages.
:~$ sudo update-alternatives --config pager
In the menu, select number corresponding to most(on mine its 5) and hit enter. Enjoy.
Less color for man pages
On July 3rd, 2009 Gregg (not verified) says:
Less is much more powerful than most.
See how to get colored man pages with less here:
http://nion.modprobe.de/blog/archives/572-less-colors-for-man-pages.html
or...
On July 2nd, 2009 Anonymous (not verified) says:
add the following to .Xdefaults
*VT100*colorULMode: on
*VT100*colorUL: MAGENTA
*VT100*underLine: off
*VT100*colorBDMode: on
*VT100*colorBD: GREEN
Then merge
xrdb -merge .Xdefaults
Post new comment