On Tue, 2003-09-16 at 17:50, Mithun Bhattacharya wrote:
> What about /proc/version - isnt that supposed to give kernel version or
> something ?

(Shamelessly stolen from RH Manual)
5.2.30. /proc/version
This file specifies the version of the Linux kernel and gcc in use, as
well as the version of Red Hat Linux installed on the system. 

Note to Ghane - Correction to my earlier mail. According to the manual
it also specifies the RH version running on the system.Although I could
not figure out how RHL 3.2.2-5 translates to RH 9 from the below output

Linux version 2.4.20-20.9 ([EMAIL PROTECTED]) (gcc
version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1 Mon
Aug 18 11:45:58 EDT 2003

Although older version in this case RH 7.2 (ignore kernel version) does
at least state something close albeit it says 7.1 on my PC dunno why
though.

Linux version 2.4.20-1 ([EMAIL PROTECTED]) (gcc version 2.96
20000731 (Red Hat Linux 7.1 2.96-98)) #1 Thu Sep 11 16:06:45 MYT 2003

It is in effect the first line from dmesg. So dmesg | head -1 and cat
/proc/version is the same although cat /proc/version is a much more
elegant method for the same. :-)

-- 
Arindam Dey

The mind is not a vessel to be filled
but a fire to be kindled.

GPG FPR: B8E3 219E F129 F970 F4A7  BC50 9636 504A BEDF 5739


_______________________________________________
ilugd mailing list
[EMAIL PROTECTED]
http://frodo.hserus.net/mailman/listinfo/ilugd

Reply via email to