netstat tulpena find process id based on Inode in netstat
awsc1@ubuntu:~/dockerexamples/docker18.06/Dockerfile$ netstat -tulpena
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 101 27118 -
tcp6 0 0 :::4000 :::* LISTEN 0 51306 -
awsc1@ubuntu:~/dockerexamples/docker18.06/Dockerfile$ sudo find /proc -lname '*51306*' 2>/dev/null
/proc/2469/task/2469/fd/4
/proc/2469/task/2470/fd/4
/proc/2469/task/2471/fd/4
/proc/2469/task/2472/fd/4
/proc/2469/task/2473/fd/4
/proc/2469/fd/4
Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN 101 27118 -
tcp6 0 0 :::4000 :::* LISTEN 0 51306 -
awsc1@ubuntu:~/dockerexamples/docker18.06/Dockerfile$ sudo find /proc -lname '*51306*' 2>/dev/null
/proc/2469/task/2469/fd/4
/proc/2469/task/2470/fd/4
/proc/2469/task/2471/fd/4
/proc/2469/task/2472/fd/4
/proc/2469/task/2473/fd/4
/proc/2469/fd/4
Comments
Post a Comment