There’s a nifty little socket reader lumped in with iproute2, and if you didn’t think to look for it, you probably wouldn’t know it was there. Here’s ss
:
I’ve prodded ss
a little more than is necessary there, just to keep the results on the screen and lined up neatly; that’s what head
and column
are for. ss
will do that for you for free, but then the results wouldn’t make a good screenshot. 🙄
ss
can read network or X server info; the man page lists quite a few options for each, as well as some examples to get you started.
ss
will also allow you to filter stats by TCP states, match ports or addresses, and a slew of other nifty tricks. The man page compares ss
to netstat; I’d probably lump them into the same category too, just out of naiveté.
And yet strangely, I’ve not heard as much about ss
. Perhaps this is another one of those Linux secrets I keep stumbling into. … 😐
Pingback: Links 10/5/2014: Munich’s GNU/Linux Success Story Told, CoreOS Introduced | Techrights
In 2011 Arch decided to deprecate net-tools in favour of iproute2
https://www.archlinux.org/news/deprecation-of-net-tools/
So ifconfig would be replaced with ip, netstat with ss.
As net-tools still remain in the repos this change is mostly unrecognized. Chances are high that a lot of arch users still use netstat or ifconfig