pid - 如何在unix中查找特定进程ID的端口号?

标签 pid ps netstat uname

In UNIX OS, how can I find the port number when i know the process name or pid ?

最佳答案

netstat -pl | grep NAME_OR_PID

关于pid - 如何在unix中查找特定进程ID的端口号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13589006/

相关文章:

pid - 为什么grepping PID一直在变化?

powershell - 我如何在执行命令之前获取第一个输出-Powershell

c - fork()返回0,但是子进程getpid()!=0。为什么?

c - 通过解析/bin/ps的输出得到PID

python - 终止后获取进程信息

networking - netstat 捕获网络快照的速度有多快?

c - 使用 libpcap 按进程 PID 过滤网络数据包

windows - Windows 上的 PID 可以为负数吗?

linux ps命令——获取进程运行时间——etime和时间参数的区别

batch-file - 批量突破 FOR