Skip to content

Instantly share code, notes, and snippets.

@simonjgreen
Created August 26, 2013 22:00
Show Gist options
  • Save simonjgreen/6347202 to your computer and use it in GitHub Desktop.
Save simonjgreen/6347202 to your computer and use it in GitHub Desktop.
Nice output of listening services
#!/bin/bash
sudo netstat -plntu --inet | sort -t: -k2,2n | sort --stable -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n | sort -s -t" " -k1,1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment