How to add entry in Linux man page database

The directory where the manpage is installed should be listed either in /etc/manpath.config or in the MANPATH environment variable. E.g., if the manpage is

/opt/mongoose/share/man/man1/mongoose.1

then you can set it using

MANPATH=/opt/mongoose/share/man man mongoose

(or change the MANPATH in your .bashrc or similar shell startup file).


Found a solution: We have to just copy mongoose.1 which is a man file into folder /usr/share/man/man1/

akshay@akshay-Inspiron-N5010:~/mongoose$ sudo cp mongoose.1 /usr/share/man/man1/

In /usr/share/man/ there are folders named from man1 to man8. I just guessed my man page extension of mongoose.1 is '1' so I copied that into man1 folder. Am I right on this?

After this step, man mongoose shows the manual page entry successfully.

Tags:

Linux

Manpage