What are your ten most used terminal commands?

May 15, 2019  

I stumbled upon this interesting idea on Dev.to and decided it’s an interesting topic on sharing your most used commands.

Here’s mine:

 1    301  52.3478%   python3
 2    66   11.4783%   ls
 3    54   9.3913%    cd
 4    29   5.04348%   .
 5    22   3.82609%   git
 6    18   3.13043%   clear
 7    12   2.08696%   pip3
 8    10   1.73913%   source
 9    8    1.3913%    deactivate
10    6    1.04348%   node</pre>

Show your top 10 most used commans including their % usage

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 -n 10

I did a slight edit on this from the article on Dev.to which only showed 5

Let’s connect on Twitter

Buy me a beer Buy me a beer