1. Display the number of physical CPUs: Cat/proc/cpuinfo | grep "Physical ID" | Sort | Uniq | Wc-1
2. Display the number of cores in each physical CPU (that is, the number of nuclei): Cat/proc/cpuinfo | grep "CPU Cores" | Uniq
3, display the number of logical CPUs: Cat/proc/cpuinfo | grep "Processor" | Wc-1
Number of physical CPUs X number of cores = number of logical CPUs (if not equal, your server CPU supports Hyper-Threading technology.) When we configure the application of the server, the number of logical CPUs of the server should prevail. )
4. Check the memory usage of Linux server: free-m
5. View hard disk and partition information: Fdisk-l
6. Check the disk space usage of the file system: Df-h
7. View the hard disk's I/O performance: iostat-d-x-k 1 10
8. Check the size of a directory in the Linux system: Du-sh
View the top 10 files or directories in the system that occupy the most space: Du-cks * | Sort-rn | Head-n 10
9. Viewing average load: Uptime (top dynamic display content)
Build a highly available Linux server