Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> couldn't stand how opaque the process is to see what ports are occupied

Discover shell aliases... You only need to remember "port"...

This is for Linux

  alias port="sudo ss -tulnp"
This is for macOS

  alias port="sudo lsof -nP -i -sTCP:LISTEN"
 help



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: