Snippets code from my daily experience

June 16, 2007

The launched commands top ten

Filed under: cygwin,unix — dafi @ 7:57 am

topyli shows a bash command line to list the launched commands top ten

A very simple command line

history | awk '{print $2}' | awk 'BEGIN {FS="|"} {print $1}'|sort|uniq -c | sort -rn | head -10

1 Comment

  1. my output on cygwin:

    $ history | awk ‘{print $2}’ | awk ‘BEGIN {FS=”|”} {print $1}’|sort|uniq -c | s
    ort -rn | head -10
    120 exit
    49 cd
    48 xhost
    44 ls
    39 startx
    32 ssh
    20 sh
    15 tar
    15 mount
    8 mc

    Comment by mrbyte — June 20, 2007 @ 4:15 pm


RSS feed for comments on this post.

Create a free website or blog at WordPress.com.

%d bloggers like this: