Home
Me

November 2009

S M T W T F S
1234567
891011121314
15161718192021
22232425262728
2930     

Advertisement

Tags

Syndicate

RSS Atom
Powered by LiveJournal.com

Apr. 8th, 2008

Me

Most used command-line commands.

Cristóbal posted his most used command-line command and that was followed on Planet TriLUG by Jim Tuttle posting the same (btw, Jim, it's "Planet TriLUG", not "TriLUG Planet"). So, I thought I'd do the same. The question was, which machine, though? If I do it on my OS X laptop, which I do use the shell on quite a bit I get:

$ history|awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -nr|head
130 ls
86 cd
26 less
19 sudo
19 bebop.sh
15 emacs
13 rm
11 ps
11 ping
10 launchctl

The "bebop.sh" is a script to ssh to my co-located server that automatically sets up any tunnels I need. If I run the command on my co-located server I get:

$ history|awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -nr|head
91 ls
66 screen
63 cd
39 ssh
36 sudo
25 emacs
22 clear
14 ps
10 wget
10 svn

I generally run screen there and then ssh to the TriLUG servers for IRC. Here's what I get on my TriLUG shell account:

$ history|awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}'|sort -nr|head 35 ls
21 cd
14 less
11 sudo
8 man
7 wget
7 tail
6 passwd
4 getent
4 c

Since I stay in irc all the time there, irssi doesn't even show up on the list. Oh well.

Anyway, I'd be interested to see what other TriLUG members have as their top used commands.