-   Linux - General (
-   -   Create a Manual / Man Page for a Script or Tool (

Hi_This_is_Dev 08-26-2010 01:18 PM

Create a Manual / Man Page for a Script or Tool

How do we create and link a manual / man page to man command?

To illustrate my point, kindly consider the following:


-bash-2.05b# ls
-bash-2.05b# man
No manual entry for

As you can see that I have two scripts. I want to display a manual / man page for the scripts. How to achieve it?

For the time being I have done this:


-bash-2.05b# sh --help
No help document is available at this time.

That is writing related information in the script itself.

rikijpn 08-26-2010 01:33 PM

If it's an extensive manual you may want to better write an info file.
If it's very short, you should just put it in the script...

Anyway, a quick google search returned this , it's kinda long, so you may want to read a short page I wrote some time ago.

If you are writing a very serious/technical manual, you should probably search for "groff" which is the formatting language used in man pages.

All times are GMT -5. The time now is 05:50 AM.