History Meme

i’d have thought that my most frequently used command line commands (there will be a less redundant way to say that) were only interesting to me, but i’ve enjoyed reading other people’s take on this so here goes.

locally: i mostly ssh in to my main web server machine, apart from that i kill off processes (ps & kill). this also reveals i still use lpr to print on my mac, and i have never got the hang of using “less” rather than “more” even though i prefer it’s features.

candor:~ kirsty$ uname -a
Darwin candor.local 9.2.2 Darwin Kernel Version 9.2.2: Tue Mar 4 21:17:34 PST 2008; root:xnu-1228.4.31~1/RELEASE_I386 i386

candor:~ kirsty$ history | awk ‘{a[$2]++}END{for(i in a){print a[i] ” ” i}}’|sort -rn | head
64 ssh
56 ps
56 cd
42 ls
28 kill
13 scp
10 more
8 lpr
7 chmod
6 su

remotely: this is the machine i usually ssh to and mess around with editing php. i’m surprised “mysql” isn’t in the list. this list reveals that i find “date” the easiest way to find out what time it is too; i don’t know why i put a clock at the top of my monitor.

[email protected]:~$ uname -a
Linux loquax 2.6.8-3-k7-smp #1 SMP Sat Jul 15 11:05:14 UTC 2006 i686 GNU/Linux

[email protected]:~$ history | awk ‘{a[$2]++}END{for(i in a){print a[i] ” ” i}}’ | sort -rn | head
125 grep
95 fg
64 php
50 cd
32 nice
22 php4
21 more
19 date
18 crontab
9 emacs

Start the discussion

Leave a Reply

Your email address will not be published.