linux如何查看计算机配置:

linux系统把机器的配置放在了/proc 目录下,

more cpuinfo 查看cpu配置,下面以公司的一个CPU的配置为例

[nemo@moaserver ~]$ cd /proc
[nemo@moaserver proc]$ more cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 15
model : 6
model name : Intel(R) Pentium(R) D CPU 3.00GHz
stepping : 5
cpu MHz : 3000.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 : 6
wp : yes
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 pebs bts pni dtes64 monitor ds_cpl
 est cid cx16 xtpr pdcm lahf_lm
bogomips : 5984.69
clflush size : 64
cache_alignment : 128
address sizes : 36 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 15
model : 6
model name : Intel(R) Pentium(R) D CPU 3.00GHz
stepping : 5
cpu MHz : 3000.000
可以看出cpu3.0G的

more meminfo查看内存

[nemo@moaserver proc]$ more meminfo 
MemTotal: 1029448 kB
MemFree: 13780 kB
Buffers: 131908 kB
Cached: 648532 kB
SwapCached: 0 kB
Active: 231980 kB
Inactive: 636320 kB
Active(anon): 11788 kB
Inactive(anon): 76340 kB
Active(file): 220192 kB
Inactive(file): 559980 kB
Unevictable: 0 kB
Mlocked: 0 kB
HighTotal: 139768 kB
HighFree: 252 kB
LowTotal: 889680 kB
LowFree: 13528 kB
SwapTotal: 2104496 kB
SwapFree: 2104496 kB
可以看出总内存1G

如果查看硬盘容量,

df命令就ok

du -h可以查看文件夹大小

标签:
本文连接地址: http://www.fresker.com/old2/archives/404 (转载注明出处)

回复

目前暂无评论

Sorry, 评论已关闭.