14

I have a very big text log file of about 37MB.
Using cat file | more I can view the file contents one page at a time.

The problem is that this always starts from the top - the old entries.
How can I make it start from the bottom where the newer entries are then move up page by page?

Parto
  • 15,647

1 Answers1

21

Try the tac command, which reverses the input, line by line.

Alternatively, less is more. Start at the end of the file using +G:

less +G some-file

You might have to get used to pressing b (which jumps back a screen) instead of Space.

muru
  • 207,228