Ben's

ss VS netstat 본문

리눅스

ss VS netstat

Ben Ko (SINCE 2013) 2013. 1. 17. 17:10
728x90

* 참고링크: http://www.cyberciti.biz/tips/tag/ss-command

 

The ss command is used to dump socket statistics. It allows showing information similar to netstat command. It can display more TCP and state information than other tools. It is a new, incredibly useful and faster (as compare to netstat) tool for tracking TCP connections and sockets. SS can provide information about:

All TCP sockets.
All UDP sockets.
All established ssh / ftp / http / https connections.
All local processes connected to X server.
All the tcp sockets in state FIN-WAIT-1 and much more.

 

* netstat 보다 짧은 시간내에 거의 동일한 정보를 확인할수 있음.

 

[root@nhkotest ~]# time netstat

real    0m33.108s
user    0m0.140s
sys     0m3.020s

 

[root@nhkotest ~]# time ss     
real    0m0.420s
user    0m0.360s
sys     0m0.060s