August 13, 2012
Show Open TCP & UDP Ports With Processes
Quickly list open TCP and UDP ports with associated processes on Linux using netstat -lepunt—a faster alternative to lsof.
So much easier than running lsof. This works on Linux.
netstat -lepunt # Show the TCP and UDP ports being listened on and if you’re root, also show the process associated, user, etc.
