1. Conclusion: SS command is more powerful than netstat, providing more functions and higher performance.
2, display the current system socket occupies the overall macro situation.
Ss-s
When there are too many sockets created, there is a problem with the system configuration.
3, display TCP socket condition SS-A-t
Show UDP socket Case SS-A-U
4, show a port number is occupied by which process, using Lsof-i udp:53
Or, show TCP port 53rd is occupied by WHO, using Lsof-i tcp:53
5. Displays all open ports on the current system, and the name of the process using that port
Ss-nlp
6. Identify applications that occupy a certain port
SS-NLP | grep 53
7, display the statistics of the IP layer
Netstat-s
8. Display statistics for each port
Ip-s Link ls ens33
Reference:
Https://www.cnblogs.com/kevingrace/p/6211509.html
Super Powerful socket tool SS, alternative netstat