tac file.txt

Category: File Viewing & Editing

tac file.txt

Print file contents in reverse line order

Prints a file in reverse order — the last line appears first. 'tac' is 'cat' spelled backwards.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.