The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to automate check outs from version control? siegfried UNIX for Dummies Questions & Answers 5 04-11-2008 10:35 PM
How to check version of Solaris? am_yadav SUN Solaris 5 02-06-2008 03:43 AM
Check version of Oracle am_yadav SUN Solaris 1 02-04-2008 03:46 AM
Redhat linux command to check Version bache_gowda UNIX for Dummies Questions & Answers 1 03-22-2007 11:09 PM
to check version to library dilipluhar High Level Programming 1 09-16-2001 08:32 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 10-20-2006
Registered User
 

Join Date: Nov 2005
Posts: 41
check version

how can I check the Linux version?

Last edited by zp523444; 10-20-2006 at 03:53 AM.
Reply With Quote
Forum Sponsor
  #2  
Old 10-20-2006
Registered User
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 401
Code:
$ cat /proc/version
Linux version 2.4.21-0.13mdksecure (flepied@bi.mandrakesoft.com) (gcc version 3.2.2 (Mandrake Linux 9.1 3.2.2-3mdk)) #1 SMP Fri Mar 14 14:10:36 EST 2003
This provides kernel info, build dates, and possibly even the distribution and version.

There might also be a /etc/*-release file where the * corresponds to the linux distribution (/etc/SuSE-release, /etc/redhat-release, or /etc/mandrake-release).

Code:
$ cat /etc/mandrake-release
Mandrake Linux release 9.1 (Bamboo) for i586
Carl
Reply With Quote
  #3  
Old 10-20-2006
Registered User
 

Join Date: Nov 2005
Posts: 41
there is no such file or dir when cat /proc/version
if I chg to /proc and ls

xxxx# ls
0 138 148 1537 175 180 192 5 78 9662
1 139 149 161 176 181 2 6 80 9668
122 140 1534 164 177 183 3 67 82 9672
130 141 1535 171 178 189 4 74 9660 curproc
137 143 1536 174 179 190 4452 76 9661
xxxx# ls -l



There is the message when I login:

FreeBSD/i386 (xyz.com) (ttyp0)

login: err
Password:
Last login: Fri Oct 20 18:42:59 from invalid hostname
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
The Regents of the University of California. All rights reserved.

FreeBSD 4.5-RELEASE (GENERIC) #0: Mon Jan 28 14:31:56 GMT 2002
Reply With Quote
  #4  
Old 10-20-2006
Registered User
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 401
Well you did ask:

Quote:
how can I check the Linux version?
So that's how you get your version in Linux. However in FreeBSD as your login screen identifies your system that doesn't seem to exist. On my Mac, I can get a version when I type:

Code:
$ uname -a
Darwin Carls-Computer.local 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~/RELEASE_PPC  Power Macintosh powerpc
On my OpenBSD system I get:

Code:
$ uname -a
OpenBSD schelin.org 3.8 GENERIC#138 i386
Carl
Reply With Quote
  #5  
Old 10-20-2006
Registered User
 

Join Date: Sep 2006
Posts: 52
Wink

You are using the FreeBSD. also you can check the machine arch through the following command.

$ uname -m


Prashant,

Last edited by prashant_ohol; 10-20-2006 at 05:02 PM.
Reply With Quote
  #6  
Old 10-20-2006
Registered User
 

Join Date: Sep 2006
Posts: 52
If you want check in your redhat, CentOs, Fedora machine. use the following command.



root@prashant [~]# cat /etc/redhat-release
Red Hat Enterprise Linux ES release 4 (Nahant Update 4)
root@prashant [~]#
Reply With Quote
  #7  
Old 10-20-2006
Registered User
 

Join Date: Nov 2005
Posts: 41
If type uname -a, the o/p is:

FreeBSD abcd.com 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Mon Jan 28 14:31
:56 GMT 2002 murray@builder.freebsdmall.com:/usr/src/sys/compile/GENERIC i3
86


is there any different with Linux Redhat? or Where can I get more information on this OS?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Tags
linux

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:30 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0