My Top Ten UNIX Commands

Sep 21, 2006 1:57 PM
Tags: bash, unix

What are the most popular commands in your shell history? (Only geeks need reply.)

$ history|awk '{print $2}'|awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c|sort -r (via IBM developerWorks)

 506 cd
460 emacs
321 cup
298 cvs
229 grep
193 ll
101 rm
45 cleanup
41 find
35 python

Of those cup is an improved cvs update, ll aliases to ls -l and cleanup is a script that gets rid of emacs backup files.


Comments: My Top Ten UNIX Commands

I can't help but notice that 'pico' is not on your list. Shame on you.

Posted by: Will on September 21, 2006 9:23 PM | permalink

The last time "pico" was on my list was 1998, when it was the only way I knew how to edit my .plan file in college.

Posted by: Joe Grossberg on September 21, 2006 9:50 PM | permalink

hmmmm.... Nitpick that the last sort there needs a -rg instead of just a -r to sort numerically instead of alphabetically. That aside I'm shocked on how the things I spead all my time actually doing don't make the list.

180 ls
108 svn
89 ./score.py
88 cd
78 python
78 ps
66 kill
64 ./download.py
43 mv
28 rm

score.py and download.py are the two scripts I'm developing that aren't accessed via a webframework. But of course I spend all my time in either firefox or kate (my editor) neither of which ever actually get closed so they don't appear on the list.

Posted by: Nephlm on September 22, 2006 11:20 AM | permalink

258 cd
252 ls
195 vi
89 grep
60 su
30 wget
15 pwd
15 mv
8 yum
6 tail

i remove nothing, i am a packrat.

Posted by: Chad on September 22, 2006 11:41 AM | permalink

Nephlm:

Why do you have to "kill" processes so often?

Chad:

WTF is "yum"?

Posted by: Joe Grossberg on September 22, 2006 12:09 PM | permalink

yum is a package installer.

'yum install vim'

etc.

Posted by: Chad on September 22, 2006 1:10 PM | permalink

Oh, on what OS?

Posted by: Joe Grossberg on September 22, 2006 4:19 PM | permalink

My top six:

touch
finger
head
mount
fsck
sleep

Posted by: Od3ll on September 22, 2006 8:01 PM | permalink

Ah, a timeless classic.

Posted by: Joe Grossberg on September 23, 2006 7:55 AM | permalink

No more comments! Either someone has violated Godwin's Law, I'm tired of the discussion or, most likely, the ten-week window has closed. You can, however, contact me through email.