Skip to content

Instantly share code, notes, and snippets.

@zilongshanren
Last active December 22, 2015 17:38
Show Gist options
  • Save zilongshanren/6507253 to your computer and use it in GitHub Desktop.
Save zilongshanren/6507253 to your computer and use it in GitHub Desktop.
查看你经常使用到的命令
history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c4 -s " " -t | sort -nr | nl | head -n10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment