Solved

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

Posted on 2004-07-30
6
6,762 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
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

911 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

21 Experts available now in Live!

Get 1:1 Help Now