Command Line History

Here’s a fun little game that Brandon linked to me from Rail Spikes. See what you’ve been running from the command line recently!

matt@Valhalla:~$ history 1000 | awk '{a[$2]++}END{for(i in a){print a[i] ” ” i}}’ | sort -rn | head
111 ls
71 /Applications/Firefox.app/Contents/MacOS/firefox
67 cd
28 tar
25 rm
25 latex
22 exit
22 dvipdft
20 vi
16 mv

Incidentally I’m running Firefox from the command line in order to switch user profiles (they’re still there from the old Mozilla days, but switching is a bit of a secret now — run firefox -ProfileManager)

No Responses to “Command Line History”

  1. Matt Mets Says:

    Yeah, the firefox profiles thing isn’t as nice anymore. What I usually do is set up laucher icons with the -no-remote option:
    firefox -p profile1 -no-remote
    and:
    firefox -p profile2 -no-remote

    That way I can launch the fox with different profiles without resorting to the command line. It gets a little weird when another application tries to open a site- it usually gets handled by the firefox session I used most recently.

    Oh, and here’s mine:

    ~$ history 1000 | awk ‘{a[$2]++}END{for(i in a){print a[i] ” ” i}}’ | sort -rn | head
    72 ls
    69 sudo
    39 cd
    33 exit
    28 iptables
    26 vi
    19 xrandr
    15 make
    14 dmesg
    12 f-spot

  2. biphenyl Says:

    So many sudos! You are clearly doing very important things, Matt!

Leave a Reply