Sunday, August 31, 2008

How to post your top 10 used terminal commands.

You need to use terminal on Linux often. Recently one Ubuntuforum member posted this code to know the top 10 terminal command used by you.
history | sed -e 's/  / /g' | cut -d " " -f3 | sort | uniq -c | sort -n | tail | sort -nr

You can copy the code and paste in the terminal and know the results.

2 comments:

zmjjmz said...

zj1992@Blokhmen:~$ history | sed -e 's/ / /g' | cut -d " " -f3 | sort | uniq -c | sort -n | tail | sort -nr
71 sudo
32 ls
28 trigger
20 man
18 killall
17 htop
17 cd
16 nc
13 echo
12 apt-cache

Alan Haggai Alavi said...

[alanhaggai@archer ~]$ history | sed -e 's/ / /g' | grep -v ' ' | cut -d " " -f5 | sort | uniq -c | sort -n | tail -n11 | sort -nr

183 sudo
98 cd
81 exit
61 perl
46 ls
35 vim
25 irssi
19 man
18 cat
15 rm

Wifi range extender at our new home in Salaiya, Bhopal

After selling Ankur Apartment flat at Delhi we permanently shifted to Bhopal in our new 3 BHK Flat at Canal Kinship, Salaiya, Bhopal wef 28 ...