man page in color text with most

Written By Smart| 7 October 2009| No Comment

most – browse or page through a text file

most  is  a  paging program that displays, one windowful at a time, the
contents of a file on a terminal.

most  is  a  paging program that displays, one windowful at a time, the contents of a file on a terminal.

if you want to display man page in colors in ubuntu.

you need to install “most” package

admin@smartproteam~$ sudo apt-get install most

now you need to set the default pager to most for update the alternatives

admin@smartproteam~$sudo update-alternatives –config pager

[sudo] password for sushanthreddy:


There are 5 alternatives which provide `pager’.


Selection    Alternative

———————————————–

1    /bin/more

2    /usr/bin/pg

*+        3    /usr/bin/less

4    /usr/bin/w3m

5    /usr/bin/most


Press enter to keep the default[*], or type selection number:

in this case you need to select 5.

for example :

admin@smartproteam~$man most

output displayed like this

most


Related Posts with Thumbnails

Share With Others

Leave your response!




Comment moderation is enabled. Your comment may take some time to appear.