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 (
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
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.