Multiple choice technology programming languages

What is the command to display a file in reverse

  1. rev filename

  2. cat -r filename

  3. tac filename

  4. filerev filename

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The 'tac' command (cat spelled backwards) displays a file in reverse order, showing the last line first. Options A, B, and D are incorrect - 'rev' reverses characters, 'cat -r' is not a valid option, and 'filerev' is not a standard Unix command.