What are .1 files in /usr/src?

Peter Jeremy peterjeremy at optushome.com.au
Thu May 8 02:11:05 PDT 2003


On Thu, May 08, 2003 at 03:25:47AM -0500, William Michael Grim wrote:
>I was curious, what are all the .1 files in /usr/src?  A couple examples
>are /usr/src/bin/dd/dd.1 and /usr/src/bin/pax/pax.1.  Are these some sort
>of files that are converted to man pages in some way?  If so, how is this
>achieved?

As already mentioned, they are the man pages.  By default, they are
gzip(1)'d into /usr/share/man/manX/ to save space.  They are converted
into formatted text using groff(1).  As an example, you can get a
PostScript version of the dd(1) man page with either of the following:
	groff -man /usr/src/bin/dd/dd.1 > dd.ps
	gzcat /usr/share/man/man1/dd.1.gz | groff -man > dd.ps

Peter


More information about the freebsd-hackers mailing list