Department of Computing Imperial College
Manual pages

Every command on the Linux machines, should have an associated manual page. The manual pages are generally comprehensive and detailed, but not particularly easy to read. They can be accessed through various utilities:

Adding custom manual pages

More advanced users may wish to add their own manual pages for applications they have compiled.

Manual pages come in two varieties, nroff encoded and plain text. The difference in the two types is that plain text versions can be read directly, whilst nroff encoded have to be formatted using the nroff utility.

Each manual page will have an associated section into which it should be installed. This section is normally indicated by a trailing digit in the manual page filename. For instance, the following manpage should be installed in section 1:

	xterm.1
As an example, suppose you wish to install a manual page in your home directory. You should create a subdirectory called man.

Within this you should create directories to hold the manual pages. The directory names should be of the following format:

For unformatted manual pages, (man1 indicates manual section 1):

	~/man/man1/
 	~/man/man2/

You can add your man directory to your MANPATH by putting the following line in your .cshrc file:
	setenv MANPATH ~/man:$MANPATH
This does not overwrite your existing manual search path.

Creating a "whatis" Database

The whatis command searches the whatis database for a oneline summary of a command. This is generated from the manual pages by using the command catman. For example, suppose that you have a set of manual pages installed in your home directory in the path ~/man. To create the whatis database for manual section 1, you would type:

	/usr/etc/catman -w -M ~/man 1

© CSG / 1999