LinuxQuestions.org
Register a domain and help support LQ
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 09-06-2012, 02:15 AM   #1
cdhar
Member
 
Registered: Jul 2012
Posts: 41

Rep: Reputation: Disabled
My Linux - 64 bit cpu and 32 bit OS?


Hi,

$ getconf WORD_BIT
32

$ uname -m
x86_64

What it means? Am I running 32 bit os on 64 bit cpu?

Thanks in advance,
cdhar
 
Old 09-06-2012, 04:35 AM   #2
cdhar
Member
 
Registered: Jul 2012
Posts: 41

Original Poster
Rep: Reputation: Disabled
I am trying to install some software (which needs 64 bit linux OS) and it is failing. So I am confused whether I am using 32 bit or 64 bit Linux OS. How to check that I tried above commands.

Please suggest
 
Old 09-06-2012, 05:04 AM   #3
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled
Paste "uname -a" info here.
 
Old 09-06-2012, 05:22 AM   #4
cdhar
Member
 
Registered: Jul 2012
Posts: 41

Original Poster
Rep: Reputation: Disabled
Linux cdhar-pc 2.6.39-1.el6.x86_64 #1 SMP Mon Aug 1 20:22:09 CEST 2011 x86_64 x86_64 x86_64 GNU/Linux


thanks,
cdhar
 
Old 09-06-2012, 05:26 AM   #5
adamk75
Senior Member
 
Registered: May 2006
Posts: 3,091

Rep: Reputation: 399Reputation: 399Reputation: 399Reputation: 399
You are very definitely running a 64-bit installation of linux.

Adam
 
1 members found this post helpful.
Old 09-06-2012, 05:43 AM   #6
cdhar
Member
 
Registered: Jul 2012
Posts: 41

Original Poster
Rep: Reputation: Disabled
Thanks for the reply.
So can I conform that I am having BOTH 64 bit Operating System and 64 bit CPU?

Last edited by cdhar; 09-06-2012 at 05:50 AM.
 
Old 09-06-2012, 06:06 AM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,130
Blog Entries: 2

Rep: Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825Reputation: 4825
If you run a 64 bit OS (which is confirmed in your case) you must have a 64 bit CPU, it wouldn't work on a 32 bit CPU.
 
1 members found this post helpful.
Old 09-06-2012, 04:47 PM   #8
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
TobiSGD's statement is correct. In addition, to check the CPU try
Code:
cat /proc/cpuinfo
and check the list of flags: if you see lm (= long mode) the CPU is 64-bit, if you don't see it the CPU is 32-bit. No mistake! This is useful if - by chance - you have a 32-bit operating system running on a 64-bit CPU.

On the contrary - as stated above - the uname command, gives information about the running kernel, whereas if you want to see the actual release of your Linux distribution, check for /etc/*release file(s). For example, on CentOS:
Code:
$ cat /etc/*release
CentOS release 6.2 (Final)
On openSuSE:
Code:
$ cat /etc/*release
openSUSE 12.1 (i586)
VERSION = 12.1
CODENAME = Asparagus
Some systems have also the lsb_release command, example:
Code:
$ lsb_release -a
LSB Version:    :core-4.0-ia32:core-4.0-noarch:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-ia32:printing-4.0-noarch
Distributor ID: CentOS
Description:    CentOS release 6.2 (Final)
Release:        6.2
Codename:       Final

Last edited by colucix; 09-06-2012 at 05:09 PM.
 
Old 09-11-2012, 02:36 AM   #9
cdhar
Member
 
Registered: Jul 2012
Posts: 41

Original Poster
Rep: Reputation: Disabled
thanks for your reply. I already got convinced that I am running 64 bit OS on 64 bit CPU by your answers. But I have tried your commands and found the below output.

$cat /proc/cpuinfo
flags : fpu de tsc msr pae cx8 apic sep cmov pat clflush acpi mmx fxsr sse sse2 ss ht syscall nx lm constant_tsc pni ssse3 cx16 sse4_1 sse4_2 popcnt lahf_lm


$ cat /etc/*release
Enterprise Linux Enterprise Linux Server release 5.8 (Carthage)
Oracle Linux Server release 5.8
Red Hat Enterprise Linux Server release 5.8 (Tikanga)

$ lsb_release -a
LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarchrinting-4.0-amd64rinting-4.0-ia32rinting-4.0-noarch
Distributor ID: EnterpriseEnterpriseServer
Description: Enterprise Linux Enterprise Linux Server release 5.8 (Carthage)
Release: 5.8

thanks,
 
Old 09-11-2012, 07:11 AM   #10
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
1. you can see the lm flag there, so 64 bit definitely

2. this is odd
Code:
Oracle Linux Server release 5.8
Red Hat Enterprise Linux Server release 5.8 (Tikanga)
a) its based on the latest RHEL 5.x ie 5.8
b) its odd that it says Oracle and Redhat. Oracle EL is certainly a rebuild of RHEL (much like Centos). However, like Centos, normally I'd expect them to remove that RH reference.
Has this machine had a mixed history ie been pointed at Oracle and RH repos at different times?
 
Old 09-11-2012, 08:20 AM   #11
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181Reputation: 1181
Quote:
Originally Posted by cdhar View Post
$ getconf WORD_BIT
32
I'm not sure how exactly getconf gets its information, but obviously it is not getting its information from the running kernel.
 
  


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
64 bit cpu-64 bit Ubuntu-are there 32 bit app issues? sofasurfer Ubuntu 7 04-09-2014 03:02 PM
[SOLVED] Installing 32 bit RPMs on 64 bit Linux conflicts with 64 bit packages gheibia Linux - Server 1 08-18-2011 02:33 AM
64 bit or 32 bit Ubuntu 10.04 in a multiple boot with windows 64 and 32 bit ? james2b Linux - General 7 09-22-2010 05:12 PM
DVD distro of ubuntu 9.10 64 bit doesn't see VIA Nano C7D CPU as 64 bit raypsi Linux - Hardware 2 08-30-2010 10:48 PM
LXer: Ubuntu 32-bit, 32-bit PAE, 64-bit Benchmarks LXer Syndicated Linux News 0 12-30-2009 12:00 PM


All times are GMT -5. The time now is 06:35 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