Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 03-26-2004, 10:30 AM   #1
LQ Newbie
Registered: Nov 2003
Distribution: red hat
Posts: 9

Rep: Reputation: 0
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!
Old 03-26-2004, 10:35 AM   #2
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
"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.

Old 03-26-2004, 10:43 AM   #3
LQ Guru
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Debian: /etc/debian-version
RedHat: /etc/redhat-release
Old 03-26-2004, 12:14 PM   #4
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550

Rep: Reputation: 31
Slackware: /etc/slackware-version
You could use pipe the output of 'uname -a' to sed to get the parts you want.
Old 12-17-2007, 11:35 AM   #5
LQ Newbie
Registered: Dec 2007
Posts: 3

Rep: Reputation: 0
finally..a sensible answer....

just use cat /etc/issue

linux keeps our brain active


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I tell what version of Linux is running? IamSancho Linux - General 37 07-25-2014 12:18 PM
Getting the Linux Distribution Name and Version Number s&j Linux - General 9 08-12-2012 06:22 PM
Regarding distribution + kernel version + gcc version + glib version. JCipriani Linux - General 8 04-19-2008 02:54 PM
Find out distribution + version (NOT: kernel version!) Tajci Red Hat 5 06-08-2005 03:17 PM
Which Linux distribution and version to use for online SCM, CRM application? syseeker Linux - Newbie 1 02-04-2004 07:10 PM

All times are GMT -5. The time now is 03:37 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration