How do you reverse a file in Linux?
Answer
Linux – Displaying a File in Reverse
Answer
Linux – Displaying a File in Reverse
- To view a file in reverse, there is simply the tac command. It is actually the CAT written in reverse: tac file.
- Like the command cat, you can concatenate several files, which will be put together, but in reverse: tac file1 file2 file3.