Quantcast
Channel: LowEndTalk
Viewing all articles
Browse latest Browse all 39981

Share your top 10 linux commands

$
0
0

As seen on HN, run

$ 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 -n10

to get your 10 most used linux commands.

Mine are:
1 46 20.8145% vim
2 31 14.0271% ls
3 21 9.50226% git
4 20 9.04977% supervisor
5 12 5.42986% more
6 6 2.71493% ssh
7 6 2.71493% cd
8 5 2.26244% nano
9 4 1.80995% ps
10 3 1.35747% sudo


Viewing all articles
Browse latest Browse all 39981

Trending Articles