The ss
(Socket Statistics) utility in Linux provides information about network sockets, TCP/UDP connections, routing and other network statistics. It is an alternative to the outdated netstat
utility.
The ss
(Socket Statistics) utility in Linux provides information about network sockets, TCP/UDP connections, routing and other network statistics. The following are some of the features of ss
utility:
netstat
utility. It uses the new Netlink engine to retrieve information about network connections.The ss utility is a powerful tool for analyzing and monitoring network connections in Linux and provides detailed information for diagnosing and optimizing network applications.
To use the ss
utility in Linux, follow these steps:
`ss`
command and press Enter.Examples of usage:
ss -t
: shows active TCP connections.ss -u
: shows active UDP connections.ss -tlp
: shows TCP connections and their associated processes.ss -ulp
: shows UDP connections and their associated processes.-s
: shows general statistics by socket type.If necessary, you can use different options and filters to get specific information. Use the `manss`
command for more information about the ss
utility and its options. The ss utility allows you to quickly retrieve information about network connections, service sockets, and other network statistics.
If you want to remove the installed ss
package on Linux, follow these instructions:
apt-get remove iproute2`
; for CentOS/Fedora: `sudoyum remove iproute`
; for Arch Linux: `sudopacman -R iproute2`
."y
" if required.Wait for the removal process to complete. After completing these steps, the ss package should be completely removed from your system.