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
You may use
sudo netstat -tup
It will display all ports and processes that opened them.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.