1. 查看内存

free -m 

free -g

2. # 查看CPU信息

cat /proc/cpuinfo 

3. 查看各分区使用情况

df -h 

4. 查看指定目录的大小

du -sh *

5. 查看系统版本

[ccps@IM01 ~]$ cat /etc/redhat-release

CentOS Linux release 7.2.1511 (Core)

6. 查看核数

cat /proc/cpuinfo| grep "cpu cores"| wc -l

 

 

 

Logo

更多推荐