History meme

Published on Fri, 2008-05-02 - 19:10

It has become all the rage for geek bloggers to post a list of the most used commands on their command lines, but since I found my own results interesting, I will post them here nevertheless.

First, our company development server at work where I spend a lot of time messing around with CVS... sigh

-(mih@dev0)-(84/pts/4)-(~/www/drupal5/sites/asdfasdf-dk.drupal5.dev.peytz.dk/)-
-($ history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
296 cvs
210 ls
209 cd
40 rm
29 realDiff
29 mv
25 vim
22 wget
20 tar
15 peytzPublish

realDiff and peytzPublish are some of our home brewed utilities, but the rest you should be familiar with. Funny thing that the number of CVS commands exceeds both cd and ls. (I don't ignore cd and ls in my history as many do, since I like to be able to repeat them just by pressing up.)


Next, my MacBook Pro. I've only had it for two weeks, but there's already plenty of history:

-(mikl@Barak)-(1/ttys002)-(~)-
-($ history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
153 cd
131 ls
103 svn
46 ssh
29 rm
23 sudo
22 mv
22 dig
20 vim
20 cp

Not many surprises there. I use SVN for revision control for Drupal Danmark, our Danish Drupal community. Most of my hobby project use git or bzr, but I have not worked with any of them since I got my Mac.


Finally, my web server:

231 ls
210 cd
72 git
64 sudo
55 wget
51 rm
47 bzr
37 vim
32 tar
29 mv

Not many surprises here. Apparently, I have been using git more than bzr lately, probably due to my work on a git mirror for Drupal CVS. This is from a rather long period, since I rarely do much other than log in, do a sudo aptitude and maybe update a few Drupal modules with wget and tar.


For more of these shell history lists, see http://diveintomark.org/archives/2008/04/15/history-meme


In other news, I have started using Markdown for this blog. I have wavered a bit between writing my own HTML, WYSIWYG and Textile for a while, but I decided to give Markdown a try, and I find the syntax a bit more natural to me than Textile. But giving my tendancy to change my mind often, this might not the the final word in the matter...

The comments for this post are now closed. If you have corrections, suggestions, or other feedback, you can reach me through the contact page.