#linux
cat
a file in reverse
You know cat file.txt
which prints all the lines in a file from first to last. But what if you want to print them from last to first? Easy, just write cat
backwards, which is tac
voila.
tac file.txt
I learned this from ChatGPT, iirc.