Command Line History

Hace tiempo que queria ponerlo por aqui.

fr3nd@prune:~$ history 1000 | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
125 ls
74 cd
49 cat
33 sssh
31 for
22 python
22 host
20 vi
16 grep
14 less

3 thoughts on “Command Line History

  1. root@linux1 ~
    # history 1000 | awk ‘{a[$2]++}END{for(i in a){print a[i] ” ” i}}’ | sort -rn | head
    72 ll
    27 cd
    22 telnet
    20 tail
    18 ps
    17 vi
    12 apt-get
    9 ls
    9 locate
    8 du

  2. tak: pues la verdad es que no… terminé el “Don Simon” y dejé a medias “DS Go2”. Desde entonces no he vuelto a hacer nada…

Comments are closed.