我想知道使用特定介面 eth0 的進程有哪些。我已經嘗試過 netstat 和 lsof 命令,但沒有成功。
答案1
確定eth0的IP位址是什麼,然後使用:
netstat -plant | grep <ip-address-of-eth0> | grep -v -
進程位於最後一列。
我想知道使用特定介面 eth0 的進程有哪些。我已經嘗試過 netstat 和 lsof 命令,但沒有成功。
確定eth0的IP位址是什麼,然後使用:
netstat -plant | grep <ip-address-of-eth0> | grep -v -
進程位於最後一列。