How do you reverse a file in Linux?

Đinh Yến

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

Tìm kiếm

Back
Top