Multiple choice technology operating systems

cat command is used to

  1. display the list of files and directories present

  2. display the contents of a file

  3. display the list of files present

  4. display the list of directories present

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

The cat command concatenates and displays the contents of files. It is commonly used to view file contents in Unix/Linux systems. Options A, C, and D refer to listing files/directories which is done by the ls command.