Bird
0
0

Which of the following is the correct command to open a file named notes.txt in nano?

easy📝 Syntax Q3 of 15
Linux CLI - Viewing and Editing Files
Which of the following is the correct command to open a file named notes.txt in nano?
Anano notes.txt
Bnano -o notes.txt
Cnano open notes.txt
Dnano /open notes.txt
Step-by-Step Solution
Solution:
  1. Step 1: Recall nano file open syntax

    The correct syntax to open a file is simply 'nano filename'.
  2. Step 2: Check other options

    Options A, B, and D use invalid flags or extra words not recognized by nano.
  3. Final Answer:

    nano notes.txt -> Option A
  4. Quick Check:

    Open file = nano filename [OK]
Quick Trick: Open file with 'nano filename' command [OK]
Common Mistakes:
  • Adding invalid flags like -o
  • Typing extra words like 'open'
  • Using slashes incorrectly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes