Bird
0
0

A user tries to run more -d file.txt but gets an error. What is the likely reason?

medium📝 Debug Q7 of 15
Linux CLI - Viewing and Editing Files
A user tries to run more -d file.txt but gets an error. What is the likely reason?
AThe user lacks read permission on the file
BThe <code>-d</code> option is not supported by more
CThe file <code>file.txt</code> does not exist
DThe more command requires sudo privileges
Step-by-Step Solution
Solution:
  1. Step 1: Check if -d is a valid option for more

    more does not support the -d option; it is a less option.
  2. Step 2: Consider other possible errors

    File existence or permissions would cause different error messages; sudo is not required for reading files.
  3. Final Answer:

    The -d option is not supported by more -> Option B
  4. Quick Check:

    more lacks -d option [OK]
Quick Trick: Use less for advanced options like -d [OK]
Common Mistakes:
MISTAKES
  • Assuming -d works with more
  • Blaming file or permissions first
  • Thinking sudo is needed
  • Confusing less and more options

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes