如何查看LINUX系统是32bit还是64bit 您所在的位置:网站首页 62bit和32bit 如何查看LINUX系统是32bit还是64bit

如何查看LINUX系统是32bit还是64bit

#如何查看LINUX系统是32bit还是64bit| 来源: 网络整理| 查看: 265

Linux: Find If Processor (CPU) is 64 bit / 32 bit [long mode ~ lm]

by NIXCRAFT on APRIL 30, 2006 · 63 COMMENTS· LAST UPDATED OCTOBER 5, 2014

in CENTOS, DEBIAN / UBUNTU, HARDWARE

Iam a new Linux system user. How do I determine if my CPU is 64bit or not on a Linux operating systems using command line option? How can I check Linux kernel is in 32 bit or 64 bit mode? You need to use the following commands to find out information about Linux kernel and CPU architecture:

Tutorial details   Difficulty Easy (rss) Root privileges Yes Requirements Linux Estimated completion time 2m

getconf LONG_BIT command: This command check if the OS (kernel) is 32 bit or 64 bit.uname command: This command prints system information including kernel version and whether kernel (os) is 32 bit or 64 bit./proc/cpuinfo file: Use this file to determine if CPU is 64 bit or 32 bit i.e. find out CPU architecture. Example - Find out if running Linux kernel (OS) is 32 or 64 bit

Type the following command at the terminal: $ uname -a Sample output:

Linux ora100 2.6.5-7.252-smp #1 SMP Tue Feb 14 11:11:04 UTC 2006 x86_64 x86_64 x86_64 GNU/Linux

x86_64 GNU/Linux indicates that you've a 64bit Linux kernel running. If you use see i386/i486/i586/i686 it is a 32 bit kernel. You can also use the following command to find out if Linux kernel is running in 32bit or 64bit mode: $ getconf LONG_BIT Sample outputs:

64 How do I find out CPU is 32bit or 64bit on a Linux system?

Simply type the following grep command and if you see lm in output, you have a 64 bit CPU based system: $ grep flags /proc/cpuinfo OR $ grep -o -w 'lm' /proc/cpuinfo | sort -u Output:

flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm

(Scroll to see all flags)

More about CPU modes: lm flag means Long mode cpu - 64 bit CPUReal mode 16 bit CPUProtected Mode is 32-bit CPU


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有