Bird
0
0

You want to open a file named todo.txt in nano and immediately start searching for the word "urgent". Which sequence of commands achieves this?

hard📝 Application Q8 of 15
Linux CLI - Viewing and Editing Files
You want to open a file named todo.txt in nano and immediately start searching for the word "urgent". Which sequence of commands achieves this?
Anano todo.txt, then press Ctrl + F and type 'urgent'
Bnano -s todo.txt urgent
Cnano todo.txt urgent
Dnano todo.txt, then press Ctrl + W and type 'urgent'
Step-by-Step Solution
Solution:
  1. Step 1: Open file with nano

    Use 'nano todo.txt' to open the file.
  2. Step 2: Start search inside nano

    Press Ctrl + W to open search prompt, then type 'urgent'.
  3. Step 3: Verify other options

    nano -s todo.txt urgent uses invalid flag, C tries to open two files, A uses Ctrl + F which is not search in nano.
  4. Final Answer:

    nano todo.txt, then press Ctrl + W and type 'urgent' -> Option D
  5. Quick Check:

    Open + search = nano file, Ctrl + W [OK]
Quick Trick: Open file then Ctrl + W to search [OK]
Common Mistakes:
  • Using wrong flags with nano
  • Trying to open multiple files at once
  • Using Ctrl+F instead of Ctrl+W for search

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes