Thursday, April 10, 2008

Meme du jour: shell history

Here's mine from my Ubuntu laptop:

$ history|awk '{a[$2]++ } END{for(i in a){print a[i] " " i}}' |sort -rn|head
121 cd
91 ssh
82 ls
46 vi
28 python
26 scp
16 dig
12 more
7 twistd
6 rm


Paddy3118 said...

Why it should not be done in a Python one-liner

- Paddy.

Jeff McNeil said...

I wish there was a good way to account for everything I do after I walk in and type:

$ emacs

Mail buffers, shell buffers, Python buffers, eval'd buffers, scratch buffers, w3m buffers, CTRL-META-thisthatandtheother commands.

About the only thing in my history are sudo commands needed when I have to change a system setting.

Using AWS CloudWatch Logs and AWS ElasticSearch for log aggregation and visualization

If you run your infrastructure in AWS, then you can use CloudWatch Logs and AWS ElasticSearch + Kibana for log aggregation/searching/visuali...