Solved

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

Posted on 2004-07-30
6
6,758 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
Comment Utility
'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
Comment Utility
Just where exactly does it show the bit info?
0
 
LVL 40

Assisted Solution

by:jlevie
jlevie earned 100 total points
Comment Utility
It  is implicit in the processor type only an Opteron or Itanium is capable of 64bit operation.
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 9

Accepted Solution

by:
e-tsik earned 150 total points
Comment Utility
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
Comment Utility
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
Comment Utility
download x86info from  
http://sourceforge.net/projects/x86info/
hope it will work
0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Currently, there is not an RPM package available under the RHEL/Fedora/CentOS distributions that gives you a quick and easy way to allow PHP to interface with Oracle. As a result, I have included a set of instructions on how to do this with minimal …
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now