linux view hardware information

1. Operating system view

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

 

2. Operating system bits

[root@iZ23jutnt6qZ ~]# getconf LONG_BIT
64

 

3. CPU information

[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. Memory Information

[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. Hard disk information

[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

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326945337&siteId=291194637