This is a handy command I ran across today.
lsof -Pni
Great for troubleshooting network connections on Linux or Macs (probably others). I have used lsof
before, but without these switches.
This is where I read about it (I haven’t tried that script yet).