Skip to content

Instantly share code, notes, and snippets.

@mjohnson9
Created October 10, 2015 17:22
Show Gist options
  • Save mjohnson9/a39617747dd13618d147 to your computer and use it in GitHub Desktop.
Save mjohnson9/a39617747dd13618d147 to your computer and use it in GitHub Desktop.
#!/bin/bash
(echo "Program Source Destination"; (netstat -lantp | grep ESTABLISHED | awk '{print $7" "$4" "$5}' | sort -u)) | column -t
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment