Linux下如何查看系统是32位还是64位的?

1.#uname -a

Linux localhost.localdomain 2.6.32-131.0.15.el6.x86_64 #1 SMP Tue May 10 15:42:40 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux

2.# uname -m
x86_64
3.# arch
x86_64

4.#file /bin/cat
/bin/cat: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped

5.more /proc/cpuinfo

processor : 23 #Provides each processor with an identifying number. On systems that have one processor, only a 0 is present.
vendor_id : GenuineIntel
cpu family : 6 #
Austhoritatively identifies the type of processor in the system. For an Intel-based system, place the number in front of "86" to determine the value. This is particularly helpful for those attempting to identify the architecture of an older system such as a <span 255,="" 255)="" none="" repeat="" scroll="" 0%="" 50%;="" -moz-background-clip:="" border;="" -moz-background-origin:="" padding;="" -moz-background-inline-policy:="" continuous;="" color:="" black;"="" style="padding: 0px; margin: 0px; ">586, 486, or 386. Because some RPM packages are compiled for each of these particular architectures, this value also helps users determine which packages to install.
model : 45
model name : Intel(R) Xeon(R) CPU E5-2640 0 @ 2.50GHz #
Displays the common name of the processor, including its project name.
stepping : 7
cpu MHz : 1200.000 #
 Shows the precise speed in megahertz for the processor to the thousandths decimal place.
cache size : 15360 KB #
Displays the amount of level 2 memory cache available to the processor
physical id : 1
siblings : 12 #
Displays the number of sibling CPUs on the same physical CPU for architectures which use hyper-threading
core id : 5
cpu cores : 6
apicid : 43
initial apicid : 43
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall
nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm dca sse4_1 sse4_2 x2apic popcnt aes xsave avx lahf_lm ida arat epb xsaveopt pln pts tpr_shadow vnmi flexpriority ept vpid #
Defines a number of different qualities about the processor, such as the presence of a floating point unit (FPU) and the ability to process MMX instructions.
bogomips : 4987.36
clflush size : 64
cache_alignment : 64
address sizes : 46 bits physical, 48 bits virtual
power management:

有几个物理处理器?

grep 'physical id' /proc/cpuinfo | sort | uniq | wc -l

2

有几个虚拟处理器?

grep ^processor /proc/cpuinfo | wc -l

24

每个CPU几个core

grep 'cpu cores' /proc/cpuinfo

cpu cores : 6

一个CPU 6 cores12个虚拟处理器。

6.$su - root
   #file /sbin/init


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值