Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rating: Thread Rating: 3 votes, 2.67 average. Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 3rd, 2006, 01:43 PM
marlonmin marlonmin is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 244 marlonmin User rank is Private First Class (20 - 50 Reputation Level)marlonmin User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 1 Day 17 h 29 m 59 sec
Reputation Power: 9
How to check Linux version No.?

Code:

I am using a Redhat Linux machine. I want to know the version number of 

the operating system. How can I check?  I don't install this Redhat.

Thanks,
Comments on this post
kicken disagrees: Yet again, don't abuse the code tags!

Reply With Quote
  #2  
Old July 3rd, 2006, 02:29 PM
kicken's Avatar
kicken kicken is offline
Wiser? Not exactly.
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: May 2001
Location: Bonita Springs, FL
Posts: 5,654 kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)kicken User rank is General 37th Grade (Above 100000 Reputation Level)  Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6Folding Points: 2670569 Folding Title: Super Ultimate Folder - Level 6
Time spent in forums: 2 Months 2 Weeks 2 Days 5 h 1 m 44 sec
Reputation Power: 3436
Code:
uname -a


That will tell you which kernel version is running. As far as redhat version number, there might be a file somewhere, or you can guess based on the kernel version maybe.

Also, don't use the tags unless your posting actual code or a command line or console output. Leave your normal post text out of them. It only makes your posts a pain to read. I've told you this before.
__________________
Recycle your old CD's, don't just trash them


Spidermonkey Tutorial;

If I helped out out, show some love with some reputation, or tip with Bitcoins to 1N645HfYf63UbcvxajLKiSKpYHAq2Zxud

Reply With Quote
  #3  
Old July 4th, 2006, 05:37 PM
innovative2000 innovative2000 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2006
Location: US - NJ-
Posts: 83 innovative2000 User rank is Corporal (100 - 500 Reputation Level)innovative2000 User rank is Corporal (100 - 500 Reputation Level)innovative2000 User rank is Corporal (100 - 500 Reputation Level)innovative2000 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 2 h 10 sec
Reputation Power: 10
Hello,

You can also find the Linux version from bellow mentioned file.
cat /proc/version == > this file display out put like this
Linux version 2.4.21-27.ELsmp (bhcompile@bugs.build.redhat.com) (gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-47)) #1 SMP Wed Dec 1 21:59:02 EST 2004)

Thanks
Innovative2000
Comments on this post
LinuxPenguin agrees!

Reply With Quote
  #4  
Old July 4th, 2006, 06:51 PM
codergeek42 codergeek42 is offline
Brony & F/OSS Advocate
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jul 2003
Location: Anaheim, CA (USA)
Posts: 6,638 codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)  Folding Points: 39542 Folding Title: Starter FolderFolding Points: 39542 Folding Title: Starter Folder
Time spent in forums: 1 Month 2 Weeks 6 Days 2 h 17 m 2 sec
Reputation Power: 2474
Send a message via ICQ to codergeek42 Send a message via AIM to codergeek42 Send a message via Yahoo to codergeek42 Send a message via Google Talk to codergeek42
Facebook
If you're sure it's a Red Hat-based system, the release number and codename will be in the /etc/redhat-release file (single line, plain text). On Fedora systems, /etc/redhat-release is a relative symlink to the fedora-release file in the same directory which contains that information.
Code:
$ cat /etc/redhat-release
Fedora Core release 5 (Bordeaux)


Edit: I should add that other systems have similar files. For example, a Gentoo system would contain an /etc/gentoo-release file, and so on and so forth.
Comments on this post
LinuxPenguin agrees: (0, so you stay exactly on 256 ) Excellent
__________________
~~ Peter ~~ :: ( Who am I? ) :: ( Peter's Musings: Uploading myself, bit by bit... ) :: ( Electronic Frontier Foundation ) :: ( I'm a GNU/Linux addict and Free Software Advocate. ) :: ( How to Ask Questions the Smart Way ) :: ( The Fedora Project, sponsored by Red Hat ) :: ( GNOME: The Free Software Desktop Project ) :: ( GnuPG Public Key ) :: ( About me on the WIki )

Last edited by codergeek42 : July 4th, 2006 at 07:05 PM. Reason: Add addendum about other distrps.

Reply With Quote
  #5  
Old July 7th, 2006, 11:36 PM
Takkun Takkun is offline
Permanently Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Location: New England
Posts: 19 Takkun Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 5 h 16 m 49 sec
Warnings Level: 10
Number of bans: 1
Reputation Power: 0
Send a message via AIM to Takkun
google ftw

edit:

sry for being an e-***.

http://linuxreviews.org/man/uname/

Reply With Quote
  #6  
Old July 8th, 2006, 12:00 AM
codergeek42 codergeek42 is offline
Brony & F/OSS Advocate
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jul 2003
Location: Anaheim, CA (USA)
Posts: 6,638 codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)codergeek42 User rank is General 22nd Grade (Above 100000 Reputation Level)  Folding Points: 39542 Folding Title: Starter FolderFolding Points: 39542 Folding Title: Starter Folder
Time spent in forums: 1 Month 2 Weeks 6 Days 2 h 17 m 2 sec
Reputation Power: 2474
Send a message via ICQ to codergeek42 Send a message via AIM to codergeek42 Send a message via Yahoo to codergeek42 Send a message via Google Talk to codergeek42
Facebook
Quote:
Originally Posted by Takkun
google ftw

edit:

sry for being an e-***.

http://linuxreviews.org/man/uname/
Not necessarily. While many distro vendors append a tag to the kernel version, it is not a reliable way to determine the distribution in use. For example, I know a few people who are using's Arch Linux's kernel patchset on Gentoo, and people may choose to rebuild their kernel using vanilla source trees on virtually any distro.

That aside, a mix of uname- and distro-release file-based checking is probably the most accurate way to detect the distro. There are also some commands that show vendor information, such as the GCC version or libc.so.6 headers. None of these are foolproof methods though, for similar reasons that the kernel version isn't a foolproof way to detect the distro in use.

Reply With Quote
  #7  
Old July 29th, 2006, 10:43 AM
frankxue frankxue is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2006
Location: Xiamen,China
Posts: 3 frankxue User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 48 m 49 sec
Reputation Power: 0
Send a message via MSN to frankxue
uname -r

Reply With Quote
  #8  
Old July 29th, 2006, 10:47 AM
LinuxPenguin's Avatar
LinuxPenguin LinuxPenguin is offline
fork while true;
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: May 2005
Location: England, UK
Posts: 5,538 LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)LinuxPenguin User rank is General 1st Grade (Above 100000 Reputation Level)  Folding Points: 11590 Folding Title: Novice Folder
Time spent in forums: 1 Month 3 Weeks 1 Day 19 h 30 m 28 sec
Reputation Power: 1050
Quote:
Originally Posted by frankxue
uname -r
That is included with uname -a

example
bash Code:
Original - bash Code
  1. james@opiate ~ $ uname -a
  2. Linux opiate 2.6.17-gentoo-r4 #2 SMP Fri Jul 28 21:26:12 Local time zone must be set--see zic  i686 Intel(R) Pentium(R) 4 CPU 2.40GHz GenuineIntel GNU/Linux
  3. james@opiate ~ $ uname -r
  4. 2.6.17-gentoo-r4

Reply With Quote
  #9  
Old October 13th, 2011, 01:39 AM
Vorac Vorac is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2011
Posts: 1 Vorac User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 7 sec
Reputation Power: 0
Not sure if that is useful, but at least will give you hope:

In Ubuntu the distribution is determined by:
Code:
lsb_release -a

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > How to check Linux version No.?

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap