network ss - ghdrako/doc_snipets GitHub Wiki

ss

You can see what services are running with the netstat command.

While netstat is still available, most Linux distributions are transitioning to ss

use ss command with -t and -a flags to list all TCP sockets. This displays both listening and non-listening sockets.

$ ss -t -a
``
to display only TCP connections with state established:

ss -a -t -o state established