What are your ten most used terminal 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

I stumbled upon this interesting idea on Dev.to

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!

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.