Difference between revisions of "UNIX Second Edition"

From Computer History Wiki
Jump to: navigation, search
(V2 could use the KS11)
(Add Matthew Gilmore's archaeology on V2 commands)
Line 16: Line 16:
 
The [[file system]] is almost identical to the [[UNIX file system|V6 one]]; the only major differences are that i) the free blocks are stored as a bit [[array]], rather than a linked [[list]], and ii) [[peripheral|device]] 'special files' are indicated by [[inode]] numbers below 41. (not via a flag in the 'mode' word in the inode, as later).
 
The [[file system]] is almost identical to the [[UNIX file system|V6 one]]; the only major differences are that i) the free blocks are stored as a bit [[array]], rather than a linked [[list]], and ii) [[peripheral|device]] 'special files' are indicated by [[inode]] numbers below 41. (not via a flag in the 'mode' word in the inode, as later).
  
A copy of Second Edition does not seem to be extant. [[The Unix Heritage Society|TUHS]] has the [[source code]] for some of its user code: an early version of the first [[C programming language|C]] [[compiler]] (C was just being defined at the point in time), and many commands. The 'UNIX Programmer's Manual: Second Edition' is also available.
+
==Source==
 +
 
 +
A copy of Second Edition does not seem to be extant. [[The Unix Heritage Society|TUHS]] claims to have the [[source code]] for some of its user code: an early version of the first [[C programming language|C]] [[compiler]] (C was just being defined at the point in time), and many commands (but see below). The 'UNIX Programmer's Manual: Second Edition' is also available.
 +
 
 +
The 'cmd' directory at TUHS actually seems to be for [[UNIX Third Edition|V3]] (see discussion there). However, the sources for some V2 commands were reconstructed by [[decompilation|decompiling]] the [[object code]] for some that were located in an old dump (in the 's2-bits.tar.gz' file in the TUHS archive, below). They seem to be a mixture of 'naked' binaries, along with some in V1 and V2 [[UNIX a.out file|a.out
 +
formats]].
  
 
==External links==
 
==External links==
  
 
* [https://minnie.tuhs.org/cgi-bin/utree.pl?file=V2 V2] - file tree at TUHS
 
* [https://minnie.tuhs.org/cgi-bin/utree.pl?file=V2 V2] - file tree at TUHS
 +
** [https://minnie.tuhs.org/cgi-bin/utree.pl?file=V2/cmd cmd] - not really
 +
* [https://www.tuhs.org/Archive/Distributions/Research/1972_stuff 1972 stuff] - the source for the above
 +
** [https://www.tuhs.org/Archive/Distributions/Research/1972_stuff/Readme Readme] - a discussion of what's there
 +
* [https://minnie.tuhs.org/mailman3/hyperkitty/list/tuhs@tuhs.org/thread/Y5CHHVMQY3JUOKI4PD7OVB4FBD4ILV2O/ S2-bits V2 Source Code Restoration]
 +
* [https://gitlab.com/segaloco/v2src v2src]
 
* [http://squoze.net/UNIX/v2man/ UNIX Programmer's Manual: Second Edition]
 
* [http://squoze.net/UNIX/v2man/ UNIX Programmer's Manual: Second Edition]
 
** [http://squoze.net/UNIX/v2man/man0 Introduction]
 
** [http://squoze.net/UNIX/v2man/man0 Introduction]

Revision as of 17:19, 18 October 2023


Unix V2
Type: Multi-tasking, multi-user
Creator: AT&T/Western Electric
Architecture: PDP-11
Previous Version: V1
This Version: V2
Next Version: V3
Date Released: June, 1972


UNIX Second Edition (often referred to as UNIX V2 or V2 UNIX - 'Unix' was still normally given in all capital letters at this point in time) was an early version of UNIX. There were 10 instances of UNIX running inside Bell at this point.

It still ran on the PDP-11/20 model of the PDP-11; the PDP-11/45 was apparently expected in the near future. Some of the -11/20's running UNIX had a KS11 Memory Protection and Relocation option to provide memory management ("the current system, which has relocation and protection hardware"(core(V))). Some also had KE11-A Extended Arithmetic Elements.

The file system is almost identical to the V6 one; the only major differences are that i) the free blocks are stored as a bit array, rather than a linked list, and ii) device 'special files' are indicated by inode numbers below 41. (not via a flag in the 'mode' word in the inode, as later).

Source

A copy of Second Edition does not seem to be extant. TUHS claims to have the source code for some of its user code: an early version of the first C compiler (C was just being defined at the point in time), and many commands (but see below). The 'UNIX Programmer's Manual: Second Edition' is also available.

The 'cmd' directory at TUHS actually seems to be for V3 (see discussion there). However, the sources for some V2 commands were reconstructed by decompiling the object code for some that were located in an old dump (in the 's2-bits.tar.gz' file in the TUHS archive, below). They seem to be a mixture of 'naked' binaries, along with some in V1 and V2 a.out formats.

External links