Netstat is a staple, but ever wish you could get more information about sockets in use?
ss to the rescue!
Open up your terminal and execute:
ss -pantus
Now sit back and enjoy the information you have been presented with. I much prefer the output of ss to lsof, and it’s quicker than grepping for IPv4 from lsof’s output.
There’s really not much else to say about ss, either you’re going to go “Oh wow!” or not care.
Edit: I should add that this might not be in your path. If it’s not, you should be able to discern its location from the iproute package. On Ubuntu it should be /sbin/ss, on FC7 it might be /usr/sbin/ss
To find it on Ubuntu/Debian: dpkg -L iproute |grep ss
To find it on RH/Fedora: rpm -ql iproute | grep ss
Until next time!
-LightningCrash