10 examples of Linux ss command to monitor network connections

The ss command is capable of showing more information than the netstat and is faster. The netstat command reads various /proc files to gather information. However this approach falls weak when there are lots of connections to display. This makes it slower. The ss command gets its information directly from kernel space. The options used with the ss commands are very similar to netstat making it an easy replacement. So in this tutorial we are going to see few examples of how to use the ss command to check the network connections and socket statistics.