Want to know what network services or applications are listening on your system?
Loading
Want to know what network services or applications are listening on your system?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sarthak VarshneyPosted Jun 13, 2025, 5:12 AM
If you want to check which ports are open and what services are listening on your Linux machine, there are a few simple commands you can use.
The one I use most often is:
This shows all listening TCP and UDP ports along with the process names and PIDs.
t= TCPu= UDPl= listeningn= don’t resolve names (faster)p= show process infoAlternatively, you can also use:
This lists all listening ports along with the application that's using them. The
-Pkeeps port numbers in numeric form, and-navoids DNS lookups.If you prefer the other way and have
netstatinstalled:And for a quick network scan of your own system (like from outside),
nmapis handy:Just pick whichever tool you're most comfortable with. Personally,
sshas become my go-to since it’s faster and already available on most modern distros.