Skip to content

Instantly share code, notes, and snippets.

@movd
Last active February 5, 2019 22:52
Show Gist options
  • Save movd/39ce407e71ff95e79d9f3585ce14c0a4 to your computer and use it in GitHub Desktop.
Save movd/39ce407e71ff95e79d9f3585ce14c0a4 to your computer and use it in GitHub Desktop.
Grep all current established network connections

Grep all current established network connections

lsof -i | grep -E "(ESTABLISHED)" | grep -v "localhost" | awk '{print $1, $8, $9}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment