Skip to content

Instantly share code, notes, and snippets.

@jonashackt
Last active November 4, 2020 09:11
Show Gist options
  • Save jonashackt/6d1349a21f546df46bca745a629c733e to your computer and use it in GitHub Desktop.
Save jonashackt/6d1349a21f546df46bca745a629c733e to your computer and use it in GitHub Desktop.
Collecting some Mac related terminal commands I regularly need
# Show all processes that use a port
lsof -i 4tcp
# or
netstat -anvp tcp | awk 'NR<3 || /LISTEN/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment