Just got through reading an interesting article on
how to review your most commonly used Unix commands. The idea is to sort the most commonly used commands numerically with a view to maybe shortening the most command ones using aliases, similar in a way to the time saving article mentioned
here a while ago.
(The lifehacker article is actually just picking up on the original article on IBM's site entitled
Unix productivity tips and is a good read for anyone wanting to improve their efficiency on the shell command line.)
Note for tcsh on FreeBSD, the command you probably want to use is this:
CODE:
history | tail -1000 | awk '{print $3}' | sort | uniq -c | sort -r
which outputs this kind of list for my shell history (listing top 10 used commands using '| head -10'):
CODE:
; history | tail -1000 | awk '{print $3}' | sort | uniq -c | sort -r | head -10
212 sc
158 m
96 fg
75 s
68 cd
56 vi
37 ls
26 grep
19 man
18 alias
I'm pretty happy with that, most of the commands are either 1 or 2 character aliases at least :)