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

11 April 2008

What’s your command-line top ten?

Filed under: General nonsense,Software — Kerry Buckley @ 2:23 pm

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.

6 Comments »

  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)

    Comment by Dustin — 11 April 2008 @ 2:33 pm

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

    Comment by Tim — 11 April 2008 @ 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.

    Comment by David — 11 April 2008 @ 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.

    Comment by DE — 11 April 2008 @ 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)

    Comment by FND — 12 April 2008 @ 6:19 am

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

    Pingback by Mighty Linuxz » What’s your top ten (Linux Command line) — 19 June 2008 @ 2:04 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment

You must be logged in to post a comment.

Powered by WordPress