Because Everyone Is Doing It…
Posted 3 months, 1 week ago at 3:09 pm. 7 comments
Just in case anyone really cares even a teeny bit about my most used commands lulz.
JÅWßR∑AK∑R ~: history|awk '{a[$2]++} END{for(i in a){printf “%5d\t%s\n”,a[i],i}}’|sort -rn|head
93 ls
90 cd
70 clear
68 svn
29 mate
26 sudo
16 ssh
16 git
15 python
6 ping
Via The B List.

oliver-beatties-imac:obeattie Oliver$ history|awk '{a[$2]++} END{for(i in a){printf “%5d\t%s\n”,a[i],i}}’|sort -rn|head
217 sudo
77 python
54 cd
40 svn
36 git
10 git-svn
9 rm
8 mkdir
6 patch
6 ls
I have to use sudo to restart Apache, which I probably should spend the 2 minutes on and fix…
Or you could just run your local web server in single threaded mode and never need to worry about restarting it ever again :)
Stillmotion:~ stillmotion$ history|awk ‘{a[$2]++} END{for(i in a){printf “%5d\t%s\n”,a[i],i}}’|sort -rn|head
53 sudo
41 cd
38 rake
37 ls
26 script/server
15 script/generate
13 ruby
13 killall
10 script/plugin
10 script/console
113 ls
83 cd
77 sudo
24 gedit
18 python
16 rm
15 killall
11 ./loadweb.rb
10 chmod
8 ruby
My system is still pretty fresh, hence the ./loadweb.rb being up there.
75-95-230-206:~ kaos42$ history|awk ‘{a[$2]++} END{for(i in a){printf “%5d\t%s\n”,a[i],i}}’|sort -rn|head
109 ssh
58 ls
44 cd
37 cp
29 vi
18 perl
14 exit
12 locate
10 sftp
8 rm
ssh is the top because I’m mainly someplace else.
Get ‘clear’ out of that list. ^L works so much faster.
MacBookPro:~ la$ history|awk '{a[$2]++} END{for(i in a){printf “%5d\t%s\n”,a[i],i}}’|sort -rn|head67 cd
45 sudo
36 script/server
30 ls
28 curl
22 top
20 killall
16 screen
13 locate
12 whois
Agreed with Tim above about clear – just use -K in the Terminal, it doesn’t leave scrollback.