Today I was poking around INTERNET to find out what is the quickest way to find out which shell is in you are. Did a reasonable search and found some better ways

$ env|grep SHELL

$echo $SHELL ( But most of the time we dont know whether this env variable exists or not )

$echo $0 (zero) [i found this is the simplest one]

Before doing this INTERNET search i did some manual page search and where i got why can't i colorfulise my man pages and got MOST package

this is very simple in debain based linux like ubuntu

$sudo apt-get install most

and Then

$export MANPAGER="/usr/bin/most"

After the above two steps i did
$ man man -- awsome i can see all my colors

you can export MANPGER variable permanantly by adding export MANPAGER="/usr/bin/most" to /etc/bash.bashrc file.

If you dont have root access you can edit your ~/.bashrc file and export it.

After exporting MANPGER through any one of the above methods dont forget to source your profile scripts

#soruce /etc/profile (If you edit /etc/bash.bashrc)


$ source ~/.bashrc (If you edit /home//.bashrc)

I love to do #man source :)

Note: I have tested this in ubuntu. If you are using Redhat/Fedora/CentOs use yum to get MOST package.

Posted by JavaBooks on Saturday, July 25, 2009
categories: , , , edit post

1 Responses to Colorful Linux Man Pages

  1. Anna Says:
  2. Great and Useful Article.

    Online Java Training | Online Java Training


Post a Comment


Label Cloud

Blog Archive

About Me