The article directories

  • Monitoring network Status
    • 1. View the network status netstat
    • 2. Application cases

Monitoring network Status

1. View the network status netstat

  • The basic grammar
Netstat [options]Copy the code
  • Option to show

    -anArrange the output in a certain order

    -pShows which process is calling
netstat -an | more
Copy the code

  • addpI can see it more clearly
netstat -anp | more
Copy the code

  • netstatThe illustration shows

  • ESTABLISHEDIndicates the establishment of a connection





2. Application cases

See information about the service named SSHD.

netstat -anp | grep ssh
Copy the code