Use the iostat command to view the usage of the hard disk:
iostat
iostat -x
iotop command:
If not installed, install it first: yum install iotop -y
The free command is used to view the memory usage:
free 、 free -m 、 free -h
ps command to view system processes:
ps -aux == ps -elf
The netstat command checks the status of network services:
netstat -lnp View the status of all network services
netstat -tulnp to view the status of all tcp and udp services
ss -an is approximately equal to netstat -lnp
netstat -an | awk '/^tcp/ {++sta[$NF]} END {for(key in sta) print key,"\t",sta[key]}'
tcpdump command, packet capture tool:
Install: yum install tcpdump -y
tcpdump -nn -i eth0 (the first n means to display the IP address as a number, the second n =name i=network card)
The tshark command is similar to the tcpdump command:
Installation: yum install wireshark -y
tshark -n -t a -R http.request -T fields -e "frame.time" -e "ip.src" -e "http.host" -e "http.request.method" -e "http.request.uri"