Skip to content

Instantly share code, notes, and snippets.

@therealssj
Created January 20, 2018 13:25
Show Gist options
  • Save therealssj/bf2c569929f7ed691b705d3b770cecca to your computer and use it in GitHub Desktop.
Save therealssj/bf2c569929f7ed691b705d3b770cecca to your computer and use it in GitHub Desktop.
#!/bin/sh
lsof>lsof.log
cat lsof.log | awk '{ print $2 " " $1; }' | sort -rn | uniq -c | sort -rn | head -20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment