I thought it was nifty when Jorge Bernal did a My top 10 commands, so here are mine. Funny thing was that Jorge Bernal command did not work for me so I added on a few extra commands to make it work for me.
history | awk ‘{print $2}’ | awk ‘BEGIN {FS=”|”} {print $1}’|sort|uniq -c | sort -n | tail | sort -nr
Note: wordpress seems to be messing up the single and double quotes, you need to remove them and retype them in
| Rank | Times Searched | Command | Comment |
| 10 | 5 | ssh | Remote login to my other computers. |
| 9 | 9 | geany | Best IDE I have found. |
| 8 | 9 | history | If I want to look at recent commands I have used. |
| 7 | 12 | xpdf | Good pdf viewer. |
| 6 | 15 | python | One of my favorite programing languages. |
| 5 | 38 | svn | Subversion, great revision control for all my projects. |
| 4 | 41 | ./a1q3.py | An assignment I was working on. |
| 3 | 59 | gnome-open | Will open any file just as nautilus would have if you had double clicked the file. |
| 2 | 127 | cd | Change directory. |
| 1 | 150 | ls | List directory. |
What are your top 10 commands?
I’m not on planet but I’m reading it. So, here are my results:
189 cd
126 ls
18 df
17 mplayer
15 su
14 vim
11 du
10 wine
9 mutt
6 apt-cache
98 sudo
68 cd
64 ls
49 aptitude
39 cat
11 whois
11 man
10 ps
10 ping
7 lspci
Hmm. Guess I’m being a mod here ^^
6228 ls
3656 sudo
1891 cd
1850 rm
1030 less
718 perl
653 cat
651 eix
527 iconv
515 nano
Lots and lots of Perl one-liners to do everything for me.
1. *click*
2. *click* *click*
lol mike, thats great yes you can use linux and the gui!
157 ls
69 links
32 df
23 find
18 whois
18 cd
15 man
14 vi
14 history
14 exit
The only problem is that I have gnome-terminal shortcuts for a whole bunch of commands like ssh to regular servers that aren’t covered.
Still nifty.
Just not nifty complete.
I assume your history has been set up to record a lot more than the default amount ephemient
Well, here’s mine:
81 ls
66 gvim
56 sudo
33 vi
33 ssh
20 top
20 du
19 cat
16 cd
13 mv
63 sudo
60 screen
57 cd
40 ls
27 wget
25 ps
22 pico
19 killall
14 ssh
13 kill
Hm.. probably should cut down on doing that many killalls.
This is mine… on my just installed system.
36 apt-get
26 find
23 vim
12 kismet
11 iwconfig
10 ls
10 cd
7 airmon-ng
6 df
5 wlanconfig
awk: 1: unexpected character 0xe2
awk: line 2: missing } near end of file
awk: 1: unexpected character 0xe2
bash: ”}: command not found
>_
wordpress seems to be messing up the single and double quotes, you need to remove them and retype them in
139 ls
124 cd
53 exit
36 vim
30 man
24 locate
19 less
9 sudo
9 rm
9 mutt
115 ssh
80 apt-cache
43 ping
25 sudo
24 ls
22 cd
20 dig
14 man
11 whois
8 history
earobinson, if you enter them into the WordPress textarea as ampersand-”quot”-semicolon and ampersand-”apos”-semicolon, you should have more luck
114 sudo
110 ls
79 cd
28 mplayer
26 wine
25 cp
15 more
14 exit
13 mencoder
10 gedit
history | awk ‘{print $2}’ | awk ‘BEGIN {FS=”|”} {print $1}’|sort|uniq -c | sort -n | tail | sort -nr
132 sudo
71 ls
51 cd
22 sysupdate
20 hcitool
14 ssh
11 wget
11 truecrypt
11 exit
8 ps
sysupdate is a simple bash script for ubuntu i wrote it’s like 2 lines.
69 sudo
61 cd
58 man
49 metaflac
42 find
34 ls
23 ps
22 grep
19 ssh
17 cksfv
[...] commands Posted on June 15th, 2007 by Sebastian. Categories: Technology.There’s been some talk on Planet Ubuntu about the most used [...]
26 sudo
17 cd
15 ssh
12 ls
9 exit
7 top
7 pkill
7 glxinfo
4 locate
4 less
68 grep
52 sudo
46 man
19 banner
18 xprop
15 cd
14 killall
14 find
13 whereis
13 ./all.sh
[...] know that this has been done before but it seems to go around every once in a while and I always have fun reading them. So once again [...]
86 sudo
43 awk
36 pon
35 cat
32 ls
28 history
23 man
19 nano
17 cd
16 strace
I am just a student preparing for Yahoo!.My perl programs are in script form,so none over here.I am working on this script of yours and one of my early ones which doesn’t take “|” into account,but gives same result,and uses lesser number of processes to do it.
I am looking forward to being able to produce more results in an efficient manner.
Btw,good blog.
@Vivek Thanks
[...] know that this has been done before but it seems to go around every once in a while and I always have fun reading them. So once again [...]
[...] In that spirit, I have created a function to provide better visibility into your current Bash history. It prints out the current top ten most common commands in your history and how often each has been used. This in itself is pretty common, and often implemented via something like this. [...]