How to find VERSION of UNIX OS

Guy Harris guy at auspex.auspex.com
Mon May 27 05:17:23 AEST 1991


>It does work in SunOS 4.1.1 on a Sun4 (but not in SunOS 4.0.3 on a Sun3).

It's nothing to do with Sun-3 vs. Sun-4; it's a question of pre-4.1 vs.
4.1[.x].  Systems prior to 3.2 didn't have "uname" at all; 3.2 through
4.0[.x] had it in "/usr/5bin", and 1) don't report the exact release
number and 2) don't give the version number at all; 4.1 actually gets it
from a structure generated during the kernel build, and should give the
right release number and should give the number that shows up in
"/etc/motd" in:

	SunOS Release 4.0.3c (FDDI_ALM_M) #1: Wed Nov 21 14:15:21 PST 1990
					   ^

as the version number.



More information about the Comp.unix.questions mailing list