Re: Check the linux type?



BearItAll wrote:
John Hasler wrote:

BearItAll writes:
I always believed /proc/version was standard...
That tells you only the kernel version.


On these here it tells me the,

It's: Linux
Kernel
Build
gcc version
Distro name and version
Last boot date and time

That is both on Redhat and openSuse. It's the only two versions I have near
me, I suspect that Debian based are giving a different line then. It's a
shame because these two give the line in a form that would be very easy to
split with a regex for the orriginal poster.



My says the kernel, and does mention centos in someone's email address. But does not mention what version of the OS
.