Multiple choice technology operating systems

Which command is used to display the contents of a file named "TEST" in reverse order?

  1. cat -r TEST;

  2. tac TEST

  3. rev TEST

  4. cat -R TEST

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

tac prints the lines of a file in reverse order (bottom to top). rev reverses the characters on each line horizontally, whereas cat -r or cat -R are invalid options for the standard cat utility.