This article is a follow-up to the previous 90 Linux Commands frequently used by Linux Sysadmins post. Every week, as time allows, I will publish articles on the 90 commands geared toward Linux sysadmins and Linux power users. What is the ss command? The ss command is a powerful utility used to display detailed information about network… continue reading.
This article is a follow-up to the previous 90 Linux Commands frequently used by Linux Sysadmins post. Every week, as time allows, I will publish articles on the 90 commands geared toward Linux sysadmins and Linux power users. What is the ss command? The ss command is a powerful utility used to display detailed information about network… continue reading.
EXCELLENT! How about 90 ss examples! These examples are awesome. Thanks!
Thanks for the feedback. More to come. That’s encouraging to hear.
@unixrab Here are some additional ss
command examples that are not already listed in the article:
- Show all TCP sockets in the SYN-RECV state:
ss -tan state syn-recv
This command will display all TCP sockets that are in the SYN-RECV state. This state is typically associated with incoming connections that are in the process of being established.
- Display detailed information about a specific port:
ss -tln sport = :80
This command will show detailed information about the TCP sockets that are listening on port 80. You can replace :80
with the specific port you want to investigate.
- List all TCP sockets using a specific address family (IPv4 or IPv6):
ss -t4
This command will list all TCP sockets using both IPv4 and IPv6 address families. You can use -t4
for IPv4 only or -t6
for IPv6 only.
- Display all listening and non-listening UDP sockets:
ss -u -a
This command will show both listening and non-listening UDP sockets on the system. It provides a comprehensive view of UDP sockets.
Edit: article updated.