Reverse cat (concatenate) a Text File

From the tac manpage: tac – concatenate and print files in reverse

So, the next time you want to see the contents of a text file, but want to see the newest content first, tac is the command you need:

tac filename.log

Or, as you’ll probably need (to stop the output just flooding to the screen), you can pipe it to more, just as you can a normal cat.

tac filename.log | more

2019-04-05 15:20:43


Add a Comment

Login or Register to post a Comment.