Possible Duplicate:
How can I add man page entries for my own power tools?
Most (if not all) Linux commands have their man pages that describe their usage options etc. Can I create similar man page for my own bash scripts?
Possible Duplicate:
How can I add man page entries for my own power tools?
Most (if not all) Linux commands have their man pages that describe their usage options etc. Can I create similar man page for my own bash scripts?
Man pages are roff (see man 7 roff) formatted documents.
help2man to generate it from your script's help output.Yes, you can. The man pages are written as nroff files.
The /usr/local/man directory is the location typically used for any locally installed packages/files.
You can look at examples by looking at the existing manpages, (which will likely need to be uncompressed first), also read man.
Presently many users prefer groff to nroff, man groff to get started