History meme

OK, everybody does that:

history|awk '{a[$2]++ } END{for(i in a){print a[i] ” ” i}}’|sort -rn|head
103 l
82 svn
72 cd
22 rm
20 vi
20 make
17 sudo
16 grep
15 g
10 ps

l == ‘ls -lh’
g == ‘gnome-open’

2 comments ↓

#1 Licio on 04.10.08 at 16:43

l just for ls -lh? You are so lazy man!

#2 glop glop on 04.10.08 at 19:40

That’s nothing, I use :
l=ls
ll=ls -l
..=cd ..

:)

not to mention the ctrl-up binded to history-search-backward that I use constantly, sometimes to search really short commands :)
and while I’m at it, crtl-l for “|less” and ctrl-g for “|grep “. Really useful.

Leave a Comment