December 2018
Beginner
320 pages
8h 57m
English
As discussed earlier, the netstat command is used to display all the active connections and routing tables information. This command is useful for monitoring performance and troubleshooting.
An example of netstat command usage is shown here:

Here is a table listing the popular options used with the ss and netstat commands:
|
Option |
Description |
|
-a |
Display all listening and non-listening sockets |
|
-n |
Display numbers instead of services name |
|
-t |
Display TCP sockets |
|
-u |
Display UDP sockets |
|
-l |
Display only listening sockets |
|
-p |
Display the process ID information of sockets |
Read now
Unlock full access