Back to the learning path

tac

tac: cat spelled backwards Command details
Step 1/1: Last line first

tac (cat backwards) prints from the last line to the first. With logs appended over time, it shows the newest entries first.

$ tac app.log | head
Beginnertac
Newest first
log.txt has the oldest entry first. Use tac to print it upside down, newest first.
nlNext lesson:rev