Solved

how to find If my linux OS is 64 bit or 32 bit system

Posted on 2004-07-30
6
6,767 Views
Last Modified: 2013-12-15
I know how to do in Solaris.
Is there a command similar to solaris'?


I am looking for a quick answer here, that's why I offer 250 pts.
0
Comment
Question by:seazodiac
6 Comments
 
LVL 40

Assisted Solution

by:jlevie
jlevie earned 100 total points
ID: 11682550
'uname -a' will reveal whether you have a 64bit processor or not. For example the output from that command executed on my Athlon box looks like:

chaos> uname -a
Linux chaos.entrophy-free.net 2.4.21-15.0.3.EL #1 Tue Jun 29 17:55:01 EDT 2004 i686 athlon i386 GNU/Linux
0
 
LVL 23

Author Comment

by:seazodiac
ID: 11682610
Just where exactly does it show the bit info?
0
 
LVL 40

Assisted Solution

by:jlevie
jlevie earned 100 total points
ID: 11682647
It  is implicit in the processor type only an Opteron or Itanium is capable of 64bit operation.
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 9

Accepted Solution

by:
e-tsik earned 150 total points
ID: 11683080
Hi :-)

Two ways:
1.
uname -m

If it returns somthing like i386, i486 (i.86) - it is 32 bit.
Itanium processors return x86_64

2.
int a;
if sizeof(a) == 4 {
  // 32 bit
} else {
  // 64 bit
}
0
 

Expert Comment

by:MNGROW
ID: 11683532
To display specific info about the cpu try
x86info -a
If you get "command not found" message it means either you don't have this binary on your system, or the path is different.
0
 

Expert Comment

by:MNGROW
ID: 11683536
download x86info from  
http://sourceforge.net/projects/x86info/
hope it will work
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question