Kerry Buckley

What’s the simplest thing that could possibly go wrong?

What’s your command-line top ten?

9 comments

Here’s mine:

~ $ history|awk '{a[$2]++} END{for(i in a){printf "%5d\t%s\n",a[i],i}}'|sort -rn|head
  232	git
   82	cd
   30	ls
   20	sudo
   18	rm
   13	./script/server
   12	mate
   11	rake
    7	vi
    7	ssh

Probably slightly skewed by the fact that I was doing a git demo yesterday.

Meme via Simon Brunning.

Written by Kerry

April 11th, 2008 at 2:23 pm

9 Responses to 'What’s your command-line top ten?'

Subscribe to comments with RSS or TrackBack to 'What’s your command-line top ten?'.

  1. Looks like all I do is wander around directories and look inside them. I’m useless.

    232 cd
    127 ls
    125 sudo
    60 less
    54 tail
    44 grep
    34 cat
    32 vi
    30 curl
    21 netstat

    (replaced “t” and “n” with backslash-t and backslash-n in the printf)

    Dustin

    11 Apr 08 at 2:33 pm

  2. Er, what’s a command line again? Is that something that they use in the military?

    Tim

    11 Apr 08 at 4:20 pm

  3. 165 cd
    72 ls
    52 svn
    36 ant
    28 grep
    13 sudo
    12 rm
    12 curl
    10 magicnumber-jboss
    10 less

    I was expecting more ssh.

    David

    11 Apr 08 at 10:43 pm

  4. C:\Documents and Settings\test>history|awk ‘{a[$2]++} END{for(i in a){printf “%5
    dt%sn”,a[i],i}}’|sort -rn|head
    ‘history’ is not recognized as an internal or external command,
    operable program or batch file.

    DE

    11 Apr 08 at 11:16 pm

  5. On Ubuntu, I had to change the command a bit:
    —————
    ~$ history | awk ‘{a[$2]++} END{for(i in a){printf “%5d %s\n”,a[i],i}}’ | sort -rn | head
    —————
    I’m not sure whether that’s right, so the following results might be wrong:
    —————
    100 cd
    83 t
    79 svn
    43 lsa
    28 gedit
    14 Scripts/VGAOut.sh
    14 history
    11 meld
    10 less
    9 ls
    —————
    (“t” is my alias for todo.sh, “lsa” is for “ls -alh”, and VGAOut.sh is my clumsy script for enabling dual screen)

    FND

    12 Apr 08 at 6:19 am

  6. […] read more | digg story […]

  7. bao Gia vat lieu nha khoa

    ERROR: Gateway Timeout

  8. Vat lieu nha khoa 0918158933

    What

    ghe nha khoa

    27 Oct 18 at 9:24 pm

  9. Tay khoan nsk

    13 Jan 19 at 11:57 pm

Leave a Reply

You must be logged in to post a comment.