Skip to content

Instantly share code, notes, and snippets.

@ascot21
Last active January 1, 2016 13:09
Show Gist options
  • Save ascot21/8149029 to your computer and use it in GitHub Desktop.
Save ascot21/8149029 to your computer and use it in GitHub Desktop.
list most used Linux commands

Bash history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n10

Oh-My-ZSH zsh_stats

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment