简体   繁体   English

如何在终端中显示使用一个命令的端口的所有进程?

[英]How to show in terminal all processes which use ports with one command?

How to show in terminal all processes which use ports with one command?如何在终端中显示使用一个命令的端口的所有进程? ( show ports as well) I guess it should be something like lsof... but need to specify a port, but I need all ports used altogether with processes (也显示端口)我想它应该类似于lsof...但需要指定一个端口,但我需要与进程一起使用的所有端口

You may use您可以使用

sudo netstat -tup

It will display all ports and processes that opened them.它将显示打开它们的所有端口和进程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM