38.8 netstat and ss: Socket and Network Connection Statistics
Alright, let’s get our hands dirty with the plumbing of your network. When things are slow, flaky, or just plain broken, you need to know what’s talking to what. Forget the fancy GUI tools that try to pretty this up; we’re going straight to the source. For decades, the go-to for this has been netstat. It’s the old guard, and it’ll get the job done. But on modern Linux systems, we have a faster, more informative successor: ss. Think of netstat as your reliable but slightly creaky old toolbox, and ss as the shiny new socket wrench set that does the same job but better and faster. I’ll show you both, because you’ll still see netstat everywhere, but you should default to ss.