The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Red Hat
.
google unix.com



Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

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-12-2008 01:35 AM
How to check version of Solaris? am_yadav SUN Solaris 5 02-06-2008 06:43 AM
Check version of Oracle am_yadav SUN Solaris 1 02-04-2008 06:46 AM
Redhat linux command to check Version bache_gowda UNIX for Dummies Questions & Answers 1 03-23-2007 02:09 AM
to check version to library dilipluhar High Level Programming 1 09-16-2001 11:32 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-20-2006
zp523444 zp523444 is offline
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 06:53 AM..
  #2 (permalink)  
Old 10-20-2006
BOFH BOFH is offline Forum Advisor  
Registered User
  
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 406
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
  #3 (permalink)  
Old 10-20-2006
zp523444 zp523444 is offline
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
  #4 (permalink)  
Old 10-20-2006
BOFH BOFH is offline Forum Advisor  
Registered User
  
 

Join Date: Feb 2005
Location: Broomfield, CO
Posts: 406
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
  #5 (permalink)  
Old 10-20-2006
prashant_ohol prashant_ohol is offline
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 08:02 PM..
  #6 (permalink)  
Old 10-20-2006
prashant_ohol prashant_ohol is offline
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 [~]#
  #7 (permalink)  
Old 10-21-2006
zp523444 zp523444 is offline
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?
Sponsored Links
Closed Thread

Bookmarks

Tags
linux, linux mandrake

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 11:00 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0