LinuxQuestions.org
Visit Jeremy's Blog.
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 02-24-2010, 02:34 PM   #1
dev_d
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?

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

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

Code:
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, 02:48 PM   #3
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 163Reputation: 163
'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, 02:52 PM   #4
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,304
Blog Entries: 55

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


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


All times are GMT -5. The time now is 08:00 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration