History Meme

[emesa@mario ~]$ uname -a Linux mario.mushroomkingdom 2.6.24.5-85.fc8 #1 SMP Sat Apr 19 12:39:34 EDT 2008 i686 athlon i386 GNU/Linux [emesa@mario ~]$ history | awk ‘{a[$2]++}END{for(i in a){print a[i] ” ” i}}’ | sort -rn | head 176 ls 172 eog 81 ./makeSpiral.pl 80 cd 61 ./makefibonaccicollage.pl 58 mplayer 51 ./makePolar.pl 36 mv 28 flickr_views.py 24 […]

Another example of when the command line trums the GUI

Whenever you’re working with the file directory structure or with text in general, you can’t do any better than using the command line.  For example, I was recently copying a bunch of files off of some old CDs because I was noticing that they were starting to develop bit-rot.  (I couldn’t access all the files […]

Bash Shell Scripting

One of the best things about Linux is the ability to write shell scripts. These are most often used as utility programs to do repetitive tasks for you. I just wrote my first one on Sunday and here it is followed by commentary. #!/bin/bash echo “starting xchat…” xchat& echo “starting Gaim…” gaim& echo “starting Thunderbird…” […]