command history
Every once in a while I get curious and dig a little in my systems logs. Then I normally look after my most used commands in the terminal. I absolutely live in my terminal. When I switched from Frontend to Backend in early 2015 I meat the first IDE that actually supports me in my work: pycharm. Before I really didn’t want to use anything else than my beloved vim.
It is really funny to see that my vim usage really dropped by a huge margin (from what I have still in my mind, cannot find the data anymore). I remember vim was my most used command before, now it is git.
# top ten
855 git
734 gm # alias: git commit -m
724 ga # alias: git commit -a
651 docker
577 cd
547 vim
431 sudo
330 cat
280 cf
274 rm
Actually git holds the first 3 places ^^. Checking the places 11 to 20 I can see that I use git even more and that I seem to use my self coded stuff.
272 gd # alias: git diff
258 ll
189 unchained # self coded
177 gc # alias: git commit
159 http
156 mv
126 cp
113 ssh
113 aws
109 echo
But now, how to find the top 10 most used commands in your terminal (for more head -n 20):
history | awk ‘{print $2}’ | sort | uniq -c | sort -nr | head