Monthly Archives: May 2012

Less is more: a little tips for reading log files with less

I tweeted about that recently but a tweet is not read by a lot of people so I write a short post here.

Have you ever wondered how to read a log file from the end?

Well, there is tail -100 logfile.log for instance, but if you haven’t find what you look for you must try with tail -200 logfile.log and so on (I don’t talk about tail -f logfile.log here).

No, I you want to read a log file but want to start from the end and search for a specific message, you can try less +G logfile.log. Life will be much easier then 🙂