Meme time: top 10 shell commands
Note: the script posted originally had a bug in sorting, as seen here.
I used history 1|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c|sort -nr|head -10
(this is for zsh history; the fix is the -n flag to sort)
254 ls
141 cd
131 vim
86 svn
77 grep
70 apt
65 sudo
60 ssh
51 rm
45 dpkg
Boring meme. I work on files, edit files, use subversion, grep and eventually run apt-get or dpkg. “apt” is a small script of mine which will call apt-cache search or “sudo aptitude” as appropriate; somewhat merging the functionality of these into one command).
Followers up:
45 cat
43 man
33 debuild
28 apt-cache
18 dch
debuild, dch - yeah, I have been doing some Debian work recently. Mostly SELinux, like a week ago or so.
[Clint, I didn’t invent that double-awk pipeline. I just fixed the sort issue. I’m currently more annoyed by awk because it uses isatty() on regular files, which in turn does ioctl, which in turn triggers SELinux audit errors…]