Multiple choice technology operating systems

Which command can be used to display the contents of a file on the screen?

  1. dir

  2. cp

  3. cal

  4. cat

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

The cat command displays the entire contents of a file to the screen. dir lists directory contents (Windows-style), cp copies files, and cal shows calendars. cat is the standard Unix command for file viewing.