cat /proc/version doesn't tell me what distro I'm running

cat /proc/version doesn't tell me what distro I'm running

thartman@linodewhyou:~>uname -a

Linux linodewhyou 2.4.29-linode39-1um #1 Wed Jan 19 12:22:14 EST 2005 i686 GNU/Linux

thartman@linodewhyou:~>cat /proc/version

Linux version 2.4.29-linode39-1um ( (gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)) #1 Wed Jan 19 12:22:14 EST 2005

In fact, I'm on ubuntu 6.06.

The above seems to tell me the host machine info.

is there an equivelant of the above commands when you're on user mode linux?

1 Reply

I wouldn't worry about the information in parentheses in /proc/version. It tells you about the version of GCC that the kernel was compiled on, not anything about the machine it's running on… it doesn't necessarily mean that your host is running Red Hat, although it might be a hint that the Linode admins favour RH.

For example, my vanilla non-Linode Ubuntu 6.06 kernel contains "(gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5))" in /proc/version… It wasn't compiled on "Ubuntu 4.0.3", just Ubuntu's version of GCC 4.0.3.

I'm not sure what an "equivalent" of those commands would be, since as far as I know they are working exactly the same as normal. The same thing would happen without UML, if you were using a non-distro-supplied kernel.

If you just want to know what distro of Linux you're using, usually there's a file in /etc to tell you, with a name ending in -version or -release. Ubuntu seems to have /etc/lsb-release, which might be standard nowadays, for all I know.


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct