In linux, netstat command tells us information of active sockets in system.
I understand that netstat
uses /proc/net/tcp
to acquire the system
ss
is a utility used to investigate sockets in Linux and Unix systems. It shows information similar to netstat
and able to dump socket statistics.
But netstat
cannot be replaced full by ss
. Some netstat
commands correspond better to ip
command.
$ netstat -r replaced by $ ip route
$ netstat -i replaced by $ ip -s lin
$ netstat -g replaced by $ ip maddr
I would say the "older" netstat
command can be replaced with both ss
and ip
commands.