LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   How tell what Linux distribution and version is running? (http://www.linuxquestions.org/questions/linux-general-1/how-tell-what-linux-distribution-and-version-is-running-162645/)

johnkantor12 03-26-2004 11:30 AM

How tell what Linux distribution and version is running?
 
On a running Linux system, how do I determine what Linux
distribution and version is running?

Can I some how decode the output from "uname -a "
to get what I want?

Many thanks!

jkobrien 03-26-2004 11:35 AM

"man uname" will explain the output in more detail, but uname -a gives you the name of your machine, the kernel version, the processor architecture and so on.

For the distribution, watch the messages at boot-up. Also it may be on screen if you use the graphical log-in. Failing that have a look in /etc. I run slackware and there's a file there called /etc/slackware-version, other distributions probably do something similar.

John

aaa 03-26-2004 11:43 AM

Debian: /etc/debian-version
RedHat: /etc/redhat-release

Nis 03-26-2004 01:14 PM

Slackware: /etc/slackware-version
You could use pipe the output of 'uname -a' to sed to get the parts you want.

maanga 12-17-2007 12:35 PM

finally..a sensible answer....
 
http://arun.wordpress.com/2006/06/10...#comment-15123

just use cat /etc/issue

linux keeps our brain active :)


All times are GMT -5. The time now is 01:55 PM.