Search

Add colour to linux man pages in Debian/Ubuntu based Linux PDF Print E-mail
User Rating: / 7
PoorBest 
How to ? - Linux
Sunday, 26 July 2009 07:30

 

 

Follow this tutorial to add eye candy highlighting to man pages in Debian/Ubuntu based GNU/Linux distributions. For this we have to install a small program called "most". To install it type in terminal:

 

 sudo apt-get install most

 

Now set the pager used by man and try running man: 

 

 export MANPAGER="/usr/bin/most" 

 

If it does not work try "/usr/local/bin/most"

Then try it:

 

 man man 

 

The screenshots without and with "most" installed are given

 WITH MAN PAGE COLORING

Add the setting of MANPAGER to your shell ~./profile to make the setting available when you login.  For this type the following command in the terminal:

 

 sudo gedit ~/.profile 

 

This will open up .profile file. Then add the line export MANPAGER="/usr/bin/most" to it and save. Then you get the man page highlighting feature each time you login. Otherwise you have to type the export command each time to get the feature.

 



Add this page to your favorite Social Bookmarking websites
 
Last Updated on Sunday, 26 July 2009 07:52
 

Add comment


Security code
Refresh

We have 68 guests online