5 Tips To Use The Linux SS Command Like A Pro

User Avatar
πŸ‘€ admin
πŸ”΄ Admin
✍️ The most important thing in the world is to not be alone.
⏳ Last active: 15 Apr 2025 at 16:01
πŸ“… Created: 20 Apr 2021 at 18:16
πŸ‘€ Viewed: 19 times
βœ‰οΈ Send Email

Introduction to SS

The ss command is a tool that is used for displaying network socket related information on a Linux system. The tool displays more detailed information that the netstat command which is used for displaying active socket connections.

In this article we are going to explore some of the best ways to use the command for best results.

01 - How to list all of the listening sockets?


# Listing Listening Sockets

ss -l

Image

02 - How to list all TCP connections?


# List all TCP Connections

ss -t

Image

03 - How to list all UDP connections?


# List All UDP Connections

ss -ua

Image

04 - How to display a summary information


# Display Summary Statistics

ss -4

Image

05 - How to filter the connections by a port number?


# Filter Connections by Port Number

ss -at '( dport = :443 or sport = :443 )'

Image

Here is a quck video on the topic

https://youtu.be/ZIN_NQxDp1c

We hope you enjoyed thisΒ article. if that is so please rate this page with the stars bellow and subscribe to ourΒ YouTube channel.

If you want to comment: Login or Register