linux下查看机器类型 32位机还是64位机

来源:互联网 发布:淘宝五十字好评有积分 编辑:程序博客网 时间:2024/06/11 15:58

转帖来自:http://apps.hi.baidu.com/share/detail/33885908

一、linux系统下方法依次为:

1、系统查询

1.1、n@node1 ~]$ uname -a

Linux node1 2.6.9-78.ELsmp #1 SMP Wed Jul 9 15:46:26 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

1.2、n@node1 ~]$ file /bin/ls

/bin/ls: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), stripped

1.3、@node1 ~]$ getconf LONG_BIT

64

2、CPU

n@node1 ~]$ cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 65
model name : Dual-Core AMD Opteron(tm) Processor 2218 HE
stepping : 3
cpu MHz : 2613.432
cache size : 1024 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt rdtscp lm 3dnowext 3dnow pni cx16lahf_lm cmp_legacy svm extapic cr8_legacy
bogomips : 5233.60
TLB size : 1088 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc

“lm" # lm = long mode,如果含有lm标识支持64bit

原创粉丝点击