Unix Programmer's Manual
November 3, 1971

The first edition of the Unix Programmer's Manual, dated November 3, 1971, is available here in image, Postscript, and PDF format. Return with us to the golden days of yesteryear!

The image links refer to PDF files produced by the scanner. They are fairly large, ranging up to a couple of MB, and are named .pdf. You may need a plugin or other software in order to view them; Adobe Acrobat is readily available.

The Postscript files are the result of OCR, are relatively modest in size (up to about 135KB) and should be suitable for viewing with a PS viewer or sending to a printer. They have been hand-edited by me in an attempt to make them look the same as they originally did. There are also PDF renditions distilled from the Postscript after OCR; they are smaller than the PS versions but have the same content.

OCR technology does a creditable job on reading plain typewritten text and in finding the page layout, and a moderately good one in inferring what's likely to be adjustable (as opposed to tabular) text. Underlining, particularly when combined with quote marks on the next line, is hard. The page layout in the PS version is like that of the original, except that adjustment of words across lines uses some combination of the OCR program's guess and hand repair of its misapprehensions. Substantive differences owe either to errors in the OCR that I failed to correct, or those introduced by me.

The scanning and OCR was done by the Textbridge package to create .tif files and also Word .doc files that I edited in Word; the PS was produced from Word 7.0. I'd like to make good HTML, but the tools I've tried so far are inadequate. The PDF was created later (from the .tif), but also with Textbridge.

The original manuals were typed on a Model 37 Teletype terminal that was evidently not in perfect tune. No contemporary digital representation (e.g. tape) survives, so far as I know. Nor do we have an original paper copy of it. If you look at the title page reproduced here in the image format, you'll see that the real ink-and-hammer version belonged to Joe Ossanna and is marked in his hand. The paper on which this version was printed was given to Mel Ferentz on his retirement from Usenix, and the rendition here is from a xerographic copy of Ossanna's original, made just before the gift to Mel.

I don't know the whereabouts of any true "first edition" of the manual, in the sense of one of the copies in Bell System covers that we made for local distribution. Ken Thompson or someone else might conceivably have one secreted somewhere; I do not. Likewise, although we do have paper copies of the second through fourth edition manuals, I don't know of any digital version.

When I look over this manual, I'm amazed by a lot of things: first, by what has survived so long (the semantics of important system calls, and the important early commands) and also by what wasn't there. Neither pipes nor grep are in it, for example. Even B was not central (the manual apologizes that the B compiler is callable only by a shell script); C was still to come.

We even anticipated the millenium bug: time was measured in sixtieths of a second since 1 Jan. 1971 as a 32 bit quantity. The BUGS section for time(II) remarks, "The cronological-minded reader will note that 2**32 sixtieths of a second is only about 2.5 years." Later, this was patched more than once by declaring a new epoch, then again in 1973 by making the units full seconds dating from the 1970 New Year--this is the "classical" Unix epoch. Of course, it only pushed the issue off to 2038. Yet, the cal program even in 1971 knew about the hanky-panky in 1752!.

On the other hand, Ken had already written a chess-playing program, and we had done most of a Fortran compiler.

In 1971, when this manual was written, we had moved off the original PDP-7 to the PDP-11/20; it had 24KB of core memory, and no memory management hardware at all. The operating system and most of the software was still in assembly language, (rewritten or new, not "ported"). By this time we knew about the upcoming PDP-11/45, and had visited Digital in Maynard to talk about it; in particular, we had the specs for the floating-point instructions it supported. So the system described here included a simulator for the instructions (fptrap(III)).


Here's what is available for downloading now.

Lucent Technologies retains copyright on this material.

HTML:

The manual contents, in post-OCR PostScript or PDF:

The manual contents, in gzipped post-OCR PostScript:

The manual in (big) image format.

On 11 Jan 1999, these files were converted from TIFF format to the more generally portable (and somewhat smaller) PDF. I still have the TIFF versions.

If you would prefer to download via ftp, these files are available in /cm/cs/who/dmr/pdfs, using anonymous ftp to plan9.bell-labs.com.