Cat in Reverse
This is a very simple command that many beginner Linux users may not know. You likely know how to print the contents of a file with the cat file.txt
command… but what if you want the results in reverse?
Simple, use tac file.txt
and it will print the lines in reverse order.