Shell Command Statistics

Participating in a *nix-nerd meme

Finally! A web meme nerdy enough for me to take part in: What does your shell’s command history reveal about you? With one simple cut-and-paste you too can peer into the depths of your text-only soul. I can thank Bill Clementson’s Blog for the infection.

Behold! The top ten shell commands by frequency from my last 500 commands in Bash:

mreid@Fuji ~
$ history|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c|sort -rn|head -10 
  91 ls
  72 more
  66 cd
  32 yap
  28 twl
  18 see
  14 vi
  13 cp
  12 diff
  11 mysql                                                                                              

The first three are unsurprising: peeking into directories, reading text files and moving around. (The command more is actually an alias to less - easier than retraining muscle memory).

The command yap starts up Yap prolog. The language used to write the majority of the code for my recently submitted PhD thesis. The other unusual one is twl, another alias, this time to ssh into the server that hosts this blog.

The commands see and vi are both text editors. I’m by no means a vi expert but I know enough to make it useful for quick edits of .htaccess files, jotting notes and editing small scripts.

The other editor command invokes SubEthaEdit, a solid Mac-only text editor with all the essentials (syntax highlighting, browser integration, etc) that also allows multiple people to edit a file simultaneously. They recently jacked up the price from $0 to US$35 so I switched to TextMate. If you’re going to pay money for an editor it may as well be a great one. This should mean the command mate will slip into the top ten in the near future.

Finally, the mysql entry belies my recent messing around with web applications and frameworks which require the MySQL database (e.g., ZenPhoto and Ruby on Rails).

one comment

bosco
12:43, 01/10/2006
Oh, you’re using textmate too. Very very slick with a UI to die for, metaphorically speaking. Although don’t ever load a project with a zillion data files.

Leave a new comment

  
Remember personal info?

/ Textile
  (Register your username / Log in)

Notify:
Hide email:

Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.

About This Entry

Other Entries

Archives