User Tools

Site Tools


linux:netstat

netstat

Find the process used the specific port

netstat -anp|grep 8080

[email protected]:~# netstat -anpl|grep 8080
tcp        0      0 127.0.0.1:8080          0.0.0.0:*               LISTEN      26062/sshd: root
tcp6       0      0 ::1:8080                :::*                    LISTEN      26062/sshd: root
[email protected]:~# kill 26062

http://colinharrington.net/blog/2010/12/which-process-has-that-port-open-linux-netstat-anp/

/var/www/dokuwiki/wiki/data/pages/linux/netstat.txt · Last modified: 2016/05/05 13:07 (external edit)