LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 03-26-2004, 10:30 AM   #1
johnkantor12
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
jkobrien
Member
 
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.

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

Rep: Reputation: 47
Debian: /etc/debian-version
RedHat: /etc/redhat-release
 
Old 03-26-2004, 12:14 PM   #4
Nis
Member
 
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
maanga
LQ Newbie
 
Registered: Dec 2007
Posts: 3

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

http://arun.wordpress.com/2006/06/10...#comment-15123

just use cat /etc/issue

linux keeps our brain active
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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