查看 linux系统版本,内核,CPU,MEM,位数的相关命令(实验)

1.查看版本,内核

evan@evan-desktop:~$ cat /etc/issue
Ubuntu 10.04 LTS \n \l

evan@evan-desktop:~$ cat /proc/version
Linux version 2.6.32-21-generic (buildd@rothera) (gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) ) #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010
evan@evan-desktop:~$ uname -r
2.6.32-21-generic

2.查看cpu,mem

evan@evan-desktop:~$ grep "model name" /proc/cpuinfo
model name    : Pentium(R) Dual-Core  CPU      E5200  @ 2.50GHz
model name    : Pentium(R) Dual-Core  CPU      E5200  @ 2.50GHz
evan@evan-desktop:~$ cat /proc/cpuinfo
processor    : 0
vendor_id    : GenuineIntel
cpu family    : 6
model        : 23
model name    : Pentium(R) Dual-Core  CPU      E5200  @ 2.50GHz
stepping    : 6
cpu MHz        : 1203.000
cache size    : 2048 KB
physical id    : 0
siblings    : 2
core id        : 0
cpu cores    : 2
apicid        : 0
initial apicid    : 0
fdiv_bug    : no
hlt_bug        : no
f00f_bug    : no
coma_bug    : no
fpu        : yes
fpu_exception    : yes
cpuid level    : 10
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 nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm
bogomips    : 5000.49
clflush size    : 64
cache_alignment    : 64
address sizes    : 36 bits physical, 48 bits virtual
power management:

processor    : 1
vendor_id    : GenuineIntel
cpu family    : 6
model        : 23
model name    : Pentium(R) Dual-Core  CPU      E5200  @ 2.50GHz
stepping    : 6
cpu MHz        : 1203.000
cache size    : 2048 KB
physical id    : 0
siblings    : 2
core id        : 1
cpu cores    : 2
apicid        : 1
initial apicid    : 1
fdiv_bug    : no
hlt_bug        : no
f00f_bug    : no
coma_bug    : no
fpu        : yes
fpu_exception    : yes
cpuid level    : 10
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 nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm lahf_lm
bogomips    : 5000.44
clflush size    : 64
cache_alignment    : 64
address sizes    : 36 bits physical, 48 bits virtual
power management:

evan@evan-desktop:~$ grep MemTotal /proc/meminfo
MemTotal:        1017052 kB
evan@evan-desktop:~$ free
             total       used       free     shared    buffers     cached
Mem:       1017052     975076      41976          0       2964     295680
-/+ buffers/cache:     676432     340620
Swap:            0          0          0

3.查看操作系统位数

evan@evan-desktop:~$ getconf LONG_BIT
32
evan@evan-desktop:~$ ldd /sbin/mii-tool
    linux-gate.so.1 =>  (0x00736000)
    libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0x00110000)
    /lib/ld-linux.so.2 (0x00bec000)

原文地址:https://www.cnblogs.com/eavn/p/1821774.html