Bird
0
0

You run more file.txt but the command exits immediately without showing the file content. What is the most likely reason?

medium📝 Debug Q14 of 15
Linux CLI - Viewing and Editing Files
You run more file.txt but the command exits immediately without showing the file content. What is the most likely reason?
AThe file <code>file.txt</code> is empty
BYou typed <code>more</code> incorrectly
CThe terminal does not support paging
DThe file <code>file.txt</code> is a directory
Step-by-Step Solution
Solution:
  1. Step 1: Consider what happens with an empty file

    If file.txt is empty, more has no content to display and exits immediately.
  2. Step 2: Evaluate other options

    Typing errors would cause command not found or syntax errors; terminal support is rarely an issue; if file.txt is a directory, more would show an error.
  3. Final Answer:

    The file file.txt is empty -> Option A
  4. Quick Check:

    Empty file = no output from more [OK]
Quick Trick: Empty files cause more to exit immediately [OK]
Common Mistakes:
  • Assuming more always shows something
  • Not checking if file is empty
  • Confusing file with directory

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes