LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-27-2009, 10:03 AM   #1
amitkatiyaan
LQ Newbie
 
Registered: Apr 2009
Posts: 2

Rep: Reputation: 0
Question HOW to check Linux version


hi
how we can check a linux os version from /etc/redhat-release is
Redhat Linux 3 Desktop or
Redhat Linux 4 Desktop or
Red Hat Enterprise Linux 2.1
Red Hat Enterprise Linux 2.1 Advanced Server or
Red Hat Enterprise Linux 2.1 Advanced Server IA64 or
Red Hat Enterprise Linux 2.1 Advanced Server Workstation or
Red Hat Enterprise Linux 2.1 Enterprise Server or
Red Hat Enterprise Linux 2.1 Enterprise Server IA64 or
Red Hat Enterprise Linux 2.1 Workstation or
Red Hat Enterprise Linux 2.1 Workstation IA64 or
Red Hat Enterprise Linux 3 update4 or
Red Hat Enterprise Linux 3 ga or
Red Hat Enterprise Linux 3 Update1 Advanced Server or
Red Hat Enterprise Linux 3 (general availability) Advanced Server or
Red Hat Enterprise Linux 3 Update9 Desktop or
Red Hat Enterprise Linux 3 (general availability) Enterprise Server or
Red Hat Enterprise Linux 3 (general availability) Workstation Server or
Red Hat Enterprise Linux (v.5.1) or
Red Hat Enterprise Linux Desktop Workstation (v.5.1 client) or
Red Hat Enterprise Linux Desktop Workstation (v.5 client) or
Red Hat Enterprise Linux Desktop Workstation (general availability client) or
 
Old 04-27-2009, 10:07 AM   #2
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Rep: Reputation: 164Reputation: 164
Check out the uname command. It is there to give you information about the OS. Also, check the /etc/issue file for information.
 
Old 04-27-2009, 10:08 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

I'm not sure what it is you want to find out:

Are you talking about a distro version (Redhat Linux 3 Desktop vs Red Hat Enterprise Linux 2.1 Workstation) or linux kernel version (2.6.24.2 vs 2.6.27.4)?

The first is in the /etc/redhat-release file (called different for other distro's, but it should reside in /etc).
The second can be found by the uname -r (or -a) command.
 
Old 04-27-2009, 10:28 AM   #4
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,820

Rep: Reputation: 229Reputation: 229Reputation: 229
For what boots...

I see the linux I have installed and its kernel when I enter the console mode by opening a terminal as su and using the command "init 3".
 
Old 04-27-2009, 10:32 AM   #5
kapilbajpai88
Member
 
Registered: Jul 2008
Location: Bangalore, India
Distribution: RHEL
Posts: 235

Rep: Reputation: 41
Smile

Hi Amit,

if you want to check Linux distro then /etc/redhat-release is the best option, and for kernel version the option would be uname -r or uname -a..., as suggested by druuna as well.
Even after that if you are confused then restart the machine and then at the startup , you can make it out easily over there.

Cheers,
Kapil
 
Old 04-27-2009, 10:41 AM   #6
inspiron_Droid
Member
 
Registered: Dec 2006
Distribution: Debian (Wheeze)
Posts: 391

Rep: Reputation: Disabled
Uname -a should answer you pothetic question, next time read the Frigging Manual.

Code to get infoe mation on init
Code:
man  init
Imnformnation on uname

Code:
man uname
 
Old 04-27-2009, 10:43 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
@NewBirth88: In a bit of a bad mood, aren't we BTW: Start using the spell check button.......
 
Old 04-27-2009, 10:55 AM   #8
inspiron_Droid
Member
 
Registered: Dec 2006
Distribution: Debian (Wheeze)
Posts: 391

Rep: Reputation: Disabled
Quote:
Originally Posted by druuna View Post
@NewBirth88: In a bit of a bad mood, aren't we BTW: Start using the spell check button.......
Yes I am in a wee bit of a stale mood. The reason is that people should read the documentation and how tos that have already been posted here on lq and other distribution specific forums before they default to asking the same idiotic newblet questions that have already been answered been and a million and a half times over. I would also like to see more people searching the Forums here at lq or searching the forums, googling for answers to there issues.

Last edited by inspiron_Droid; 12-31-2010 at 09:13 AM.
 
Old 04-27-2009, 11:08 AM   #9
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
)
 
Old 04-27-2009, 02:15 PM   #10
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
I like the lsb_release command for determining Distribution version.. it should be part of your distro if it's LSB Compliant.

Code:
it-lenny:~$ lsb_release -a

Distributor ID:	Debian
Description:	Debian GNU/Linux 5.0.1 (lenny)
Release:	5.0.1
Codename:	lenny
 
Old 04-27-2009, 02:24 PM   #11
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by NewBirth88 View Post
Yes ai am in a wee bit of a stale mood. The reason is that people should read the documentation and howtos that have been aaready here on lq and other distribution specific forums before they default to asking the same idiotic newblet questions that have already been answered been and a half times over. I would also like to see more people searching the Forums here at lq.
Yeah, I understand your position. It does get somewhat stale reading the same questions over and over again. Thing is, when I was a newb I asked the same questions, and titled my threads with "please help". So I'm patient with other newbs. The ones who hang around learn how to converse properly eventually.
 
Old 04-27-2009, 03:25 PM   #12
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
To NewBirth88 (and the public):
Your comments were completely unnecessary. This is LinuxQuestions after all, and also the forum title above this thread is Linux-Newbie, so it's normal to have many similar questions here. Next time, if you really can't stand a newbie question, just move to the next thread or politely show how to search for answers...
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
howto check module version under linux ? cccc Linux - Hardware 4 02-26-2013 01:34 PM
linux version check cheehongjb Linux - Newbie 3 12-04-2008 02:55 AM
check Linux version redhad ryzor Linux - Newbie 1 03-20-2006 02:20 AM
failed make check on:Linux from Scratch - Version SVN-20050524 - 6.11. Glibc-2.3.5 jery_wang2002 Linux From Scratch 3 06-02-2005 02:44 PM
how 2 check RH version? est Red Hat 2 02-28-2005 01:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:45 AM.

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