How to parse netstat command in order to get process name and PID from it?

后端 未结 7 2263
不思量自难忘°
不思量自难忘° 2020-12-24 02:26

I\'m trying to determine what application is using certain port and get netstat -tlnp | grep for Linux.

This command return the following o

7条回答
  •  再見小時候
    2020-12-24 02:55

    Try netstat -p

    -p, --program Show the PID and name of the program to which each socket belongs.

提交回复
热议问题