Skip to content

Instantly share code, notes, and snippets.

@joujiahe
Forked from hanksudo/top_10_shell_commands.sh
Created June 27, 2013 13:41
Show Gist options
  • Save joujiahe/5876494 to your computer and use it in GitHub Desktop.
Save joujiahe/5876494 to your computer and use it in GitHub Desktop.
Show your top 10 shell commands
history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment