linux 查看硬件信息

1. 操作系统查看

[root@iZ23jutnt6qZ ~]# cat /etc/issue
CentOS release 6.5 (Final)
Kernel \r on an \m

2. 操作系统位数

[root@iZ23jutnt6qZ ~]# getconf LONG_BIT
64

3. CPU信息

[root@iZ23jutnt6qZ ~]# cat /proc/cpuinfo
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 62
model name	: Intel(R) Xeon(R) CPU E5-2650 v2 @ 2.60GHz
stepping	: 4
cpu MHz		: 2600.141
cache size	: 20480 KB

 

4. 内存信息

[root@iZ23jutnt6qZ ~]# free 
             total       used       free     shared    buffers     cached
Mem:       8058056    7218648     839408          0     315284    5011576
-/+ buffers/cache:    1891788    6166268
Swap:      8388600          0    8388600

5. 硬盘信息

[root@iZ23jutnt6qZ ~]# df
Filesystem     1K-blocks      Used Available Use% Mounted on
/dev/xvda1      20641404   2469372  17123508  13% /
tmpfs            4029028   1371156   2657872  35% /dev/shm
/dev/xvdb1     206421044 110243904  85691568  57% /home
/dev/xvdb2     309633084   4802556 289102092   2% /home2

猜你喜欢

转载自shiguanghui.iteye.com/blog/2251877