LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 02-18-2009, 02:01 AM   #1
UltraSoul
Member
 
Registered: Dec 2004
Location: Japan
Distribution: REDHAT9.0, Mandrake10.1
Posts: 404

Rep: Reputation: 31
How to confirm Linux 32bit or 64bit


Hi, All

I have a question on RHEL4 AS4.

I want to confirm whether my linux support 64 bit. And what is the command?
I run uname -a which shows i386 and i686. I wonder whether i686 shows
64bits.
 
Old 02-18-2009, 02:10 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
i686 is 32 bit
 
Old 02-18-2009, 02:10 AM   #3
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Nope. i386 and i686 stat for 32-bit. Your kernel is 32-bit. There is a chance you're running a 32-bit OS on a 64-bit architecture, since you can do it without any problem. To check if your CPU is 64-bit, look at the output of
Code:
cat /proc/cpuinfo
in the flags section you have to look for lm (= long mode). If you see it, the CPU is 64-bit, if you don't see it the CPU is 32-bit. Anyway, you're running a 32-bit OS otherwise you should see x86_64 from the output of uname -a.

Last edited by colucix; 05-09-2010 at 04:16 PM.
 
Old 02-18-2009, 02:32 AM   #4
Ranguvar
Member
 
Registered: Oct 2008
Location: Upstate NY
Distribution: Arch Linux
Posts: 99

Rep: Reputation: 17
Google for i386 and i686. Yep, they're 32-bit.
 
Old 02-18-2009, 02:15 PM   #5
servat78
Member
 
Registered: Jan 2009
Posts: 100

Rep: Reputation: 17
64-bit systems usually identify themselves as such by having '64-bit' or something similar in their kernel name , so running 'uname -a' should result in a string that gives you a hint, like
Linux box.domain 2.6.26.3-14.fc8 #1 SMP Wed Sep 3 03:40:05 EDT 2008 i686 i686 i386 GNU/Linux
(this is a 32-bit system)

Debian

Last edited by servat78; 02-19-2009 at 11:30 AM.
 
Old 02-18-2009, 02:37 PM   #6
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,297

Rep: Reputation: 126Reputation: 126
With an PC architecture you should see "x86_64" in the uname string for 64 bit. However there is also an ia64 architecture for some specific Intel processors (but not all). Normally anything else (i386, i586, i686) is 32 bits, regardless of which processor it's running on.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Compiling 32bit C++ on 64bit Linux linuxmthomson Programming 3 06-11-2008 06:05 PM
32bit and 64bit linux file size limitation Swakoo Linux - General 2 09-05-2007 07:21 AM
32bit windows vmware and 64bit linux pandah General 1 07-17-2007 03:24 PM
Info re 64bit vs. 32bit Linux gmcauley Linux - General 8 04-18-2007 06:41 AM
can 64bit processor run both 64bit and 32bit computers? DJOtaku Linux - General 4 09-08-2005 08:14 PM

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

All times are GMT -5. The time now is 02:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration