I start:
1 1874 18.3942% git
2 709 6.95917% sudo
3 622 6.10522% cd
4 565 5.54574% kubectl
5 480 4.71143% docker
I found this nice gem in the-book-of-secret-knowledge. (A good link for any terminal user. Have a look!)
show your top 5 most used commands 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 5
(the original was slightly modified to only show the top 5, instead of 20)
I tought it would be fun to share our most used commands here. Show me yours! ;)
❤️ Let's connect!
I would love to grow my network with other tech enthusiasts. Let's connect here or over on twitter! 👋 @langhard
Heads up
I mean I almost don't need to say this, but: Please have a close look at your commands before you share them, don't share private information!