View the status of running linux

A view of linux server CPU

1. Check the number of physical cpu

[root@Ceshi ~]# grep 'core id' /proc/cpuinfo | sort -u | wc -l

2. Check the number of cores

[root@Ceshi ~]# grep 'processor' /proc/cpuinfo | sort -u | wc -l

3. Check the number of threads

[root@Ceshi ~]# grep 'physical id' /proc/cpuinfo | sort -u

 

Second, to see linux server disk space

 1. df -h

 Df command linux system disk partition is a unit view the file system, you can add parameters to view the disk space information

 Third, check the running linux server

1. top

Guess you like

Origin www.cnblogs.com/duaner92/p/11696054.html