Unix Review > Archives > 2003 > December 2003

December 2003

The Open Road: Creating your own man pages

by Joe "Zonker" Brockmeier

Over the years I've accumulated dozens of books on Linux and Unix, but none of these books has ever come in as handy as the man pages that document system commands and other important aspects of *nix systems.

To close out 2003, I thought I'd discuss man pages and how to write your own man pages. Most, but not all, programs distributed for *nix systems come with their own man pages — so it's rare that you'll have to write man pages for popular applications and programs. I have found a few exceptions, though, and the Debian Project maintains a list of needed man pages. You can also check out the Missing Man Pages Project (m2p2) if you're interested in contributing.

It's not uncommon for an organization to use applications that are not documented with man pages — or indeed documented in a meaningful form at all. However, it's a good idea to maintain documentation for in-house applications and such, and to train users to actually utilize man pages if they're using *nix systems. By the way, if your users prefer to access documentation via a company Intranet, you can use man2html to convert man pages to HTML. I'll cover this as well. If you're really into online documentation, you could even use man to create documents for things like the company phone directory or policy manual. (In fact, a man page stating the organization's computer usage policy might not be a bad idea...)

Let's look at the anatomy of a man page first, and then walk through the creation of a simple man page.

Sys Admin Spotlight

CMP DevNet Spotlight

Highlighting Multiple Search Keywords in ASP.NET
This article demonstrates how to highlight a multiple keywords within a DataGrid control, no matter where they are in the text.

In the News

CD-ROM

Sys Admin and The Perl Journal CD-ROM version 11.0

Version 11.0 delivers every issue of Sys Admin from 1992 through 2005 and every issue of The Perl Journal from 1996-2002 in one convenient CD-ROM!

Order now!




MarketPlace

Workflow Enabled Help Desk & IT Service Management
Automate service desk activities and integrate processes across IT. Learn more here.

Flowcharts from C/C++ code -- Free trial download
Understand C/C++ code in less time. A new team member ? Inherited legacy code ? Get up to speed faster with Crystal Flow for C/C++. Code-formatting improves readability. Flowcharts are integrated with code browser. Export flowcharts to Visio.

Discover WinDev 11 RAD
and develop 10 times faster ! ALM, IDE, .Net, PDF, 5GL, Database, 64-bit, etc. Free Express version

Online Crash Analysis
Automatically capture customer crash data, no debugger required. Support for .NET, C++, OS X, Java.

Wanna see your ad here?