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.
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.