Hacker News new | ask | show | jobs
by HackerThemAll 68 days ago
> 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"
1 comments

Why would I want to remember anything. This is always remembering for me.