Skip to content

Instantly share code, notes, and snippets.

@phette23
Created April 14, 2013 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phette23/5383978 to your computer and use it in GitHub Desktop.
Save phette23/5383978 to your computer and use it in GitHub Desktop.
Results of my "top 10 BASH commands used"
# Top 10 BASH commands used
# from stackoverflow.com/questions/68372/what-is-your-single-most-favorite-command-line-trick-using-bash#answer-68390
function top10() {
history | awk 'BEGIN {FS="[ \t]+|\\|"} {print $3}' | sort | uniq -c | sort -nr | head
}
1393 gs - alias for git status
1272 g - alias for git
1121 l - alias for ls -l
1003 - can't explain this...why would an empty space show up as a command? Bug in the top10 function maybe
755 cd
478 s - alias for sublime text
372 brew - homebrew, mxcl.github.io/homebrew/
332 git
277 .. - alias for cd ..
270 z - directory-jumper utility, github.com/rupa/z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment