1,uptime View System is responsible for
2,more Page view file, enter displays the next line, space shows the next page, F shows the next screen, and B displays the previous screen content.
3,top command to view the system situation, press SHIF + H to view the load of the current thread.
The 4,top-p PID can view the system load of a thread based on a process.
5,df-h view hard disk usage,-h indicates the output is formatted in units.
6,du-d l-h Folder path: View the space occupied by the specific directory. -D indicates a recursive depth, and L is the next directory of the current directory with recursion depth.
7,sar-n DEV 1 1
If the hint Sar:command not found description is not installed, the CentOS system executes the Yum install Sysstat command to be mounted. -N Indicates the status of the network, and Dev represents the view of traffic for each NIC.
The first 1 indicates that the first second is sampled once, and the second 1 indicates a total extraction. When the command is executed, the current network condition is displayed, where Lo represents the local loopback network, eth0 represents the network card, and RXPCK/S indicates that each second receives
Number of packets, TXPCK/S indicates the number of packets sent per second rxkb/s represents the number of bytes received per second, txkb/s represents the number of bytes sent per second, rxcmp/s represents the number of compressed packets received per second, and TXCMP/S indicates that every second
The number of compressed packets sent. RXMCST/S represents the number of broadcast packets received per second, and average represents the average of multiple samples.
Sar–u Viewing CPU Usage
Sar–q Viewing average load
Sar–r Viewing memory usage
Sar–w Viewing page Exchange occurrences
Sar–b viewing statistics for I/O and transfer rates
For more information, please refer to: http://www.youxijishu.com/nd.jsp?id=100&_np=2_520
Common commands for Linux performance analysis