Bird
0
0

Which of the following is the correct syntax to create an empty file named notes.txt?

easy📝 Syntax Q3 of 15
Linux CLI - Linux Basics and Terminal
Which of the following is the correct syntax to create an empty file named notes.txt?
Atouch notes.txt
Bmkdir notes.txt
Crm notes.txt
Dcat notes.txt
Step-by-Step Solution
Solution:
  1. Step 1: Identify command to create empty file

    The touch command creates an empty file or updates timestamp.
  2. Step 2: Check other options

    mkdir creates directories, rm deletes files, and cat displays file content.
  3. Final Answer:

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

    Create empty file = touch [OK]
Quick Trick: Use 'touch filename' to create empty files fast [OK]
Common Mistakes:
  • Using mkdir to create files
  • Using rm instead of touch
  • Confusing cat with file creation

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes