Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

A piece of software wants to know for its configuration whether my man uses nroff or vt100 "catman" pages. How do I determine this?

share|improve this question

2 Answers 2

Give nroff a go, most recent versions of 'man' use *roff by default.

man man

Shows under Defaults that nroff is the default on my Ubuntu & OS X systems so should be a safe bet.

share|improve this answer

Short answer: just pick nroff.

Nroff is the traditional word processor for manual pages. “Catman” pages are usually manual pages that have been formatted by nroff for use on a text terminal. Catman pages have little formatting, just boldface and underline, and are justified for a particular terminal width (generally 80 columns). In the old days, it made sense to install preformatted (i.e. catman) pages to avoid the formatting time, but on a modern (or even not-so-modern) machine the time spent formatting is insignificant. Some systems have a cache so that each source page is formatted only once, but even that is falling into disuse. Having the source nroff pages has the advantage that they can be formatted for a different terminal width, for a different character encoding, or for viewing in a non-terminal setting (web browser, pdf, ...).

Look in /usr/man or /usr/share/man to see what's already there. If you see directories called man followed by a digit containing files that have a lot of lines beginning with with a dot followed by two letters, your system supports nroff man pages. If you see directories called cat followed by a digit containing files with ^H characters (character number 8, which might be displayed as \010, \x08, or show up as underlining or boldface), your system supports catman pages.

In fact, even if one of these is absent, most systems support both. For example, Linux systems rarely have any catman page installed but do support them. Conversely, the base OpenBSD installation comes with catman pages but supports nroff man pages (which are the norm in ports). A few systems support other formats as well, for example Solaris ships some pages in an SGML format.

share|improve this answer
    
Thanks, Gilles. What I've got in /usr/share/man is some directories called man1, man2, etc., filled with files like awk.1.gz. –  Wolf Nov 12 '10 at 13:04

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.