Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-24-2010, 03:34 PM   #1
LQ Newbie
Registered: Feb 2010
Location: Tempe, Arizona
Distribution: Ubuntu
Posts: 12

Rep: Reputation: 0
How do I find whether any linux kernel supports 32-bit or 64-bit architecture?

Is there a command or any steps to follow?

Old 02-24-2010, 03:47 PM   #2
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 359Reputation: 359Reputation: 359Reputation: 359
You can use the command "uname -a" to show all of the kernel identification information. For example on my current system:

tj@T-Bird:~$ uname -a
Linux T-Bird 2.6.24 #1 PREEMPT Wed Apr 9 10:37:19 EDT 2008 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz GenuineIntel GNU/Linux
Here you can see the hostname, kernel version, the machine type, and finally the processor itself. You are interested in machine type, which in this case is "i686", meaning 32 bits.

You can see just the machine type with "uname -m", as well.
Old 02-24-2010, 03:48 PM   #3
Senior Member
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 167Reputation: 167
'uname -a' should tell you a bit about your active kernel and 'cat /proc/cpuinfo' should tell you about your processor features.

Generally the package should tell you if it's x86 or 64bit.
Old 02-24-2010, 03:52 PM   #4
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.2 & current
Posts: 7,881
Blog Entries: 59

Rep: Reputation: Disabled
All kernels support both, which they're using depends on their configuration. From a 64 bit .config file:
# CONFIG_X86_32 is not set


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
how to check linux kernel is 32 bit or 64 bit surprise_frnd Linux - General 13 10-16-2012 10:55 AM
I know my computer supports 64 bit, but should I still use 32 bit? Chronothread Linux - Newbie 3 05-04-2009 03:09 PM
compiling 64 bit kernel in 32 bit linux MadnessASAP Linux - Hardware 6 05-04-2009 12:47 PM
porting of 32 bit application on 64 bit linux architecture vikaschoudhry1985 Linux - Newbie 2 07-13-2008 11:39 PM
Graphic Card that Supports displaying 8-bit and 24-bit images simultaneously yrraja Linux - Hardware 2 04-30-2003 07:41 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:14 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration