| |
| | How to Write a Man Page |
 | | The man page for man in Section 1 has information on how to use the man command, while Section 5 or 7 has a page on how to write man pages, and was the source of information for this document. |
 | | Thus, all the man pages for commands are in directories named man1, all the man pages for system calls are in directories named man2, etc. The man pages themselves have names of the form "name.X" where name is the name of the command, system call, or whatever, and "X" is usually the manual section number. |
 | | For example, you could create the subdirectories man, man/man1, and man/man3 in a project directory and put the man page for a new command in man/man1/xxx.1 and the man page for a new library function in man/man3/yyy.3. |
| babbage.cs.qc.edu /courses/cs701/Handouts/man_pages.html (1267 words) |
|