查看linux的内存、Cpu、操作系统版本、位数。
转载自:http://duqiangatom.blog.163.com/blog/static/115025182010101291530700/
在终端中运行命令。
1、内存
cat /proc/meminfo
MemTotal: 24684544 kB
MemFree: 7124708 kB
Buffers: 64224 kB
Cached: 15940184 kB
SwapCached: 829468 kB
Active: 9636876 kB
Inactive: 7406004 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 24684544 kB
LowFree: 7124708 kB
SwapTotal: 7602144 kB
SwapFree: 1176696 kB
Dirty: 112 kB
Writeback: 0 kB
Mapped: 8546976 kB
Slab: 290188 kB
CommitLimit: 19944416 kB
Committed_AS: 32310808 kB
PageTables: 159060 kB
VmallocTotal: 536870911 kB
VmallocUsed: 267076 kB
VmallocChunk: 536603551 kB
HugePages_Total: 0
HugePages_Free: 0
Hugepagesize: 2048 kB
2、cpu
cat /proc/cpuinfo (physical id是物理cpu的个数编号)
3、操作系统版本
cat /etc/issue
Red Hat Enterprise Linux AS release 4 (Nahant Update 6)
Kernel /r on an /m
uname -a (64位的)
Linux localhost.localdomain 2.6.9-67.ELsmp #1 SMP Wed Nov 7 13:56:44 EST 2007 x86_64 x86_64 x86_64 GNU/Linux