Vicente Garcia-Reyes

Vicente Garcia-Reyes

What are your ten most used terminal commands?

What are your ten most used terminal commands?

Subscribe to my newsletter and never miss my upcoming articles

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!

Tweets by highcenburg

Share this:

Like this:

Like Loading...

 
Share this

Impressum

Code snippets/words may be mine unless otherwise stated on each article.

Proudly part of