Skip to content

Instantly share code, notes, and snippets.

@sodonnell
Created July 19, 2009 11:02
Show Gist options
  • Select an option

  • Save sodonnell/149886 to your computer and use it in GitHub Desktop.

Select an option

Save sodonnell/149886 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
echo -e "Listing "established" network connections:\n"
netstat -punt | grep -i "udp\|tcp" | awk {'print $4"\t"$1 '} | sed s/.*://
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment