Last Updated: February 25, 2016
·
433
· amorfis

Searching in big log files

You have big (gigabytes) log files, and want to search for text that occured recently (close to the end of file).

Open file in less:

$ less file.log

Go to the end of file: press SHIFT+G
Press CTRL+C if you don't need lines numbers
Enter:

?<search term>

to search backwards for the term. Press "?" to search for next occurence.