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

Air India direct flight to San Fransisco has flown through China today.

 My sister in law left for San Fransisco by AI 173 flight which flows over North Pole. I tracked that flight on flightstats.com till it land...