Hi everyone! I'm back with another article :D
'ss' stands for socket statistics. This is a great command to view network related information. the 'ss' command has replaced the netstat command
In this article, I will be going over how you can use the 'ss' command to view certain network information.
1. ss
Simply using 'ss' will show you all the connections
2. ss -l
The 'ss -l' command is for viewing listening ports.
To read more about listening ports, check out this great article and website
How to Check for Listening Ports
3. ss -t
'ss -t' is used to view TCP connections. TCP stands for Transmission Control Protocol. It's important because it establishes the rules of how information is communicated through the internet.
To learn more about TCP, check this article out TCP Transmission Control Protocol
4. ss -lt
This command is used to view listening TCP connections
5. ss -ua
'ss -ua' is used to view all UDP connections. UDP stands for User Datagram Protocol.
For more about UDP:
6. ss -lu
Used to view listening UDP connections.
7. ss -s
Used to view summary statistics
8. ss -6
The 'ss -6' command is used to view Ipv6 connections. As you can see, I don't have any.
9. ss -4
The 'ss -4' command is used to view Ipv4 connections.
10. man ss
To view all ss commands. Type in 'man ss'