Options Available in the `ss` command Linux
We will go through the most common options available.
Options |
Description |
---|---|
-t |
Display TCP sockets |
-u |
Display UDP sockets |
-l |
Display listening sockets |
-a |
Display all sockets (listening and non-listening) |
-e |
Display detailed information (including users) |
-i |
Display internal information |
-n |
Show numerical addresses instead of resolving |
-r |
Display the routing table |
-s |
Display summary statistics |
-4 |
Display only IPv4 sockets |
-6 |
Display only IPv6 sockets |
-o |
Show timers |
-p |
Show process information |
-P |
Show process statistics |
âtimewait |
Display TIME-WAIT sockets |
âlistening |
Display listening sockets |
âall |
Display all sockets (listening and non-listening) |
ânumeric |
Show numerical addresses instead of resolving |
âextended |
Display extended socket information |
âresolve |
Resolve hostnames |
âprocesses |
Display process information |
âprocesses-raw |
Display process information in raw format |
âsummary |
Display summary statistics |
Note : This is not an exhaustive list, and the âssâ command offers additional options and flexibility. You can explore further options and combinations by referring to the âssâ manual page using the command man ss in your terminal.
ss command in linux
Linux is celebrated for its versatility and robust command-line utilities. One such utility is the âssâ command, which stands for âSocket Statistics.â It is a potent tool for inspecting and displaying detailed information about network sockets on a Linux system. The âssâ command is an indispensable resource for network administrators, system administrators, and developers, offering insights into network connections, routing tables, and more.
In this comprehensive guide, weâll explore the âssâ command, its various options, and use cases, and provide real-world examples to help you harness its full potential.