31

I've heard many times now that it is, and I'm mostly using ss now. But I sometimes get frustrated with differences between the two, and I would love some insight.

Also, I can't be the only one who thinks of Hitler when using ss. Not a great name.

Kusalananda
  • 320,670
  • 36
  • 633
  • 936
onlyanegg
  • 975
  • 2
  • 8
  • 9

2 Answers2

13

Found an article on deprecation from 2011. It seems like the whole net-tools package was not maintained for a while and so it was deprecated. In Debian 9 it is not even installed by default. From the project page it seems like there were no updates at least since 2011.

But you can easily install netstat (and e.g. ifconfig) and keep using them. I would probably only use them for listing stuff though.

Installing on Debian 9:

apt-get install net-tools

PS: For more information you might want to see another Q&A about ifconfig deprecation (ifconfig is part of the same package): https://serverfault.com/questions/458628/should-i-quit-using-ifconfig

Nux
  • 1,028
  • 1
  • 11
  • 13
-3

Why is netstat deprecated? Because it says so in the man page:

NOTE
   This program is obsolete.  Replacement for netstat is ss.   Replacement
   for  netstat -r is ip route.  Replacement for netstat -i is ip -s link.
   Replacement for netstat -g is ip maddr.

Why did the developers deprecate netstat? I don't know.

It's open source, though. If you want to revive it, make it more useful and get it "undeprecated," feel free to do so.

Wildcard
  • 35,316
  • 26
  • 130
  • 258