Skip to main content

List ports in use and the applications using them

 This program is part of the net-tools RPM package.


# netstat -lntup

-l = only services which are listening on some port

-n = show port number, don't try to resolve the service name

-t = tcp ports

-u = udp ports

-p = name of the program


Since net-tools is deprecated, you can use the ss command instead of netstat if netstat is not present on your machine:

# ss -lntup

This should work similarly and is already installed on Mageia.


RESOURCES

https://superuser.com/questions/529830/get-a-list-of-open-ports-in-linux


Comments