Multiple choice technology operating systems

Difference between cat and more command ?

  1. cat displays files cotents. if the file is large the contents scroll off the screen before we view it. commad 'more' is like a pager which displays the contents page by page

  2. more displays files cotents. if the file is large the contents scroll off the screen before we view it. commad 'cat' is like a pager which displays the contents page by page

  3. Both will not used to display

  4. Both will display page by page

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

The cat command outputs the entire file content at once, which can quickly scroll off the screen for large files. In contrast, the more command acts as a pager, displaying content one screenful at a time, making it much easier to read.

AI explanation

To answer this question, let's go through each option:

Option A) cat displays files contents. If the file is large, the contents scroll off the screen before we view it. The command 'more' is like a pager which displays the contents page by page. This option is correct because it accurately describes the differences between the 'cat' and 'more' commands.

Option B) more displays files contents. If the file is large, the contents scroll off the screen before we view it. The command 'cat' is like a pager which displays the contents page by page. This option is incorrect because it describes the commands incorrectly. The 'more' command is actually the one that displays the contents page by page.

Option C) Both will not be used to display. This option is incorrect because both 'cat' and 'more' commands are used for displaying file contents.

Option D) Both will display page by page. This option is incorrect because only the 'more' command displays file contents page by page, not the 'cat' command.

Therefore, the correct answer is A) cat displays files contents. If the file is large, the contents scroll off the screen before we view it. The command 'more' is like a pager which displays the contents page by page.