Bird
0
0

Which of the following is the correct syntax to view a file named log.txt using more?

easy📝 Syntax Q12 of 15
Linux CLI - Viewing and Editing Files
Which of the following is the correct syntax to view a file named log.txt using more?
Amore > log.txt
Bmore log.txt <
Cmore log.txt
Dmore log.txt -f
Step-by-Step Solution
Solution:
  1. Step 1: Recall basic syntax of more

    The correct way to view a file is by passing the filename as an argument: more filename.
  2. Step 2: Analyze options

    more log.txt < uses incomplete input redirection syntax; more > log.txt uses output redirection which is incorrect; more log.txt -f places option after filename, treating -f as a file.
  3. Final Answer:

    more log.txt -> Option C
  4. Quick Check:

    Use more filename to view files [OK]
Quick Trick: Use more filename to open files quickly [OK]
Common Mistakes:
  • Using output redirection instead of input
  • Adding invalid options to more
  • Confusing input and output redirection

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes