Skip to content

Instantly share code, notes, and snippets.

@dylanjha
Last active April 28, 2017 20:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dylanjha/9788edde1c22c7def3060eaf440dbee3 to your computer and use it in GitHub Desktop.
Save dylanjha/9788edde1c22c7def3060eaf440dbee3 to your computer and use it in GitHub Desktop.
See what commands you run in your terminal most often. Run this to see which commands you should create new aliases for. Stolen from here: https://superuser.com/questions/250227/how-do-i-see-what-my-most-used-linux-command-are
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment