difference between netstat and ss in linux?

前端 未结 5 963
自闭症患者
自闭症患者 2021-01-30 20:36

In linux, netstat command tells us information of active sockets in system.

I understand that netstat uses /proc/net/tcp to acquire the system

5条回答
  •  忘掉有多难
    2021-01-30 21:27

    Check out the source for ss:

    https://github.com/shemminger/iproute2/blob/master/misc/ss.c

    Basically it directly queries the kernel and can respond much faster than netstat.

提交回复
热议问题