Here’s mine:
~ $ history|awk '{a[$2]++} END{for(i in a){printf "%5d\t%s\n",a[i],i}}'|sort -rn|head
232 git
82 cd
30 ls
20 sudo
18 rm
13 ./script/server
12 mate
11 rake
7 vi
7 ssh
Probably slightly skewed by the fact that I was doing a git demo yesterday.
Meme via Simon Brunning.
6 replies on “What’s your command-line top ten?”
Looks like all I do is wander around directories and look inside them. I’m useless.
232 cd
127 ls
125 sudo
60 less
54 tail
44 grep
34 cat
32 vi
30 curl
21 netstat
(replaced “t” and “n” with backslash-t and backslash-n in the printf)
Er, what’s a command line again? Is that something that they use in the military?
165 cd
72 ls
52 svn
36 ant
28 grep
13 sudo
12 rm
12 curl
10 magicnumber-jboss
10 less
I was expecting more ssh.
C:\Documents and Settings\test>history|awk ‘{a[$2]++} END{for(i in a){printf “%5
dt%sn”,a[i],i}}’|sort -rn|head
‘history’ is not recognized as an internal or external command,
operable program or batch file.
On Ubuntu, I had to change the command a bit:
—————
~$ history | awk ‘{a[$2]++} END{for(i in a){printf “%5d %s\n”,a[i],i}}’ | sort -rn | head
—————
I’m not sure whether that’s right, so the following results might be wrong:
—————
100 cd
83 t
79 svn
43 lsa
28 gedit
14 Scripts/VGAOut.sh
14 history
11 meld
10 less
9 ls
—————
(“t” is my alias for todo.sh, “lsa” is for “ls -alh”, and VGAOut.sh is my clumsy script for enabling dual screen)
[…] read more | digg story […]