Skip to content

Instantly share code, notes, and snippets.

@hornos
Created December 8, 2012 20:10
Show Gist options
  • Select an option

  • Save hornos/4241712 to your computer and use it in GitHub Desktop.

Select an option

Save hornos/4241712 to your computer and use it in GitHub Desktop.
listen2
#!/bin/bash
lsof -i TCP -i UDP | awk '{printf("%8s%12s%8s%5s%4s %s %s\n",$2,$1,$3,$5,$8,$9,$10)}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment