netstat network, process, memory
Transferred from:https://www.cnblogs.com/xieshengsen/p/6618993.html
Https://zhidao.baidu.com/question/105305364.html
List all port conditions
[[email protected] ~]# NETSTAT-A # list all ports
[[email protected] ~]# Netstat-at # list all TCP ports
[[email protected] ~]# Netstat-au # list all UDP ports
-l list all Sockets in the listening state
[[email protected] ~]# Netstat-l # display only listening ports
[[email protected] ~]# NETSTAT-LT # display listening TCP port
[[email protected] ~]# Netstat-lu # display listening UDP port
[[email protected] ~]# NETSTAT-LX # display listening Unix port
Show statistics for each protocol
[[email protected] ~]# Netstat-s # Show statistics for all ports
[[email protected] ~]# Netstat-st # Displays statistics for all TCP
[[email protected] ~]# NETSTAT-SU # Show statistics for all UDP
- p display PID and process name
[Email protected] ~]# netstat-p
Show Core Routing information
[Email protected] ~]# Netstat-r
[[email protected] ~]# NETSTAT-RN # Display number format, do not query host name
View Services
[Email protected] ~]# NETSTAT-ANTP | grep ssh
View Ports
[Email protected] ~]# NETSTAT-ANTP | grep 22
Netstat command--network, process, memory