Gice

Technology and General Blog

The “ss” is a built-in Linux command utilized to screen specific information and facts about the community sockets. You can use distinctive possibilities with this command to screen the kind of details that you want. We will briefly converse about some examples of working with the “ss” command in Linux in today’s guidebook.

Essential Syntax of the “ss” Command and Its Help Guide

The primary syntax of the command below discussion is revealed down below:

There are distinct available choices that you can use with the “ss” command. You can examine out these selections by accessing the “help” handbook of “ss” with the adhering to command:

You can see the “help” handbook of the “ss” command in the graphic proven below:

Examples of the “ss” Command in Linux

The illustrations of the “ss” command in Linux are reviewed underneath:

Illustration 1: Screen All the Connections
If you want to listing down all the connections of your Linux procedure, you can run the “ss” command without the need of any possibilities in the next way:

All the connections of our Linux procedure are displayed in the impression below:

Case in point 2: Screen All the Ports
You can display all the ports no matter of whether or not they are listening or not by using the following variation of the “ss” command in Linux:

All the ports of our Linux program are revealed down below:

Case in point 3: Exhibit the Listening Sockets Only
If you want to display only the listening sockets on the terminal, you can use the “ss” command in the subsequent method:

The listening sockets of our Linux program are demonstrated under:

Case in point 4: Display screen All the UDP Connections
We know that we possibly have UDP connections or TCP connections. If you want to record down all the UDP connections, you ought to use the “ss” command in the subsequent way:

All the UDP connections of our Linux method are as follows:

Illustration 5: Show All the Listening UDP Connections
If you only want to record down people UDP connections that are presently listening, you can use the pursuing model of the “ss” command:

All the listening UDP connections of our Linux system are shown beneath:

Illustration 6: Display screen All the TCP Connections
Likewise, you can also listing down all the TCP connections in the subsequent way:

All the TCP connections of our Linux procedure are revealed under:

Example 7: Screen All the Listening TCP Connections
The listening TCP connections of the Linux program can be exhibited with the next command:

The benefits of operating this command are as follows:

Instance 8: Exhibit a Summary of All the Connections
You can even listing down the figures summary of all the connections of your process by applying the “ss” command in the subsequent fashion:

The studies summary of all the connections of our Linux process is revealed underneath:

Example 9: Display screen the Procedures Utilizing the Sockets
If you want to show the processes corresponding to all the link sockets, then you can execute the “ss” command in the following way:

The output of this variation of the “ss” command is as follows:

Case in point 10: Display the Connections Corresponding to a Particular World wide web Protocol
You can even pick to display screen all the IPv4 or IPv6 connections. For displaying only the IPv4 connections, you can execute the “ss” command as follows:

If you want to screen all the IPv6 connections, you can exchange “-4” with “-6”. The output of this variant of the “ss” command is shown under:

Conclusion

We approximately coated all the case in point use cases of the “ss” command in Linux in this write-up. Having said that, you can take a look at the usage of this command further more by reviewing its Support Handbook.

Leave a Reply

Your email address will not be published. Required fields are marked *