Bird
0
0

What does the rm command do in Linux?

easy📝 Conceptual Q11 of 15
Linux CLI - File and Directory Operations
What does the rm command do in Linux?
ADeletes files or folders permanently
BCopies files to another location
CLists files in a directory
DCreates a new directory
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of rm

    The rm command is used to remove files or directories permanently from the system.
  2. Step 2: Compare with other commands

    Other commands like cp copy files, ls lists files, and mkdir creates directories, so they do not delete files.
  3. Final Answer:

    Deletes files or folders permanently -> Option A
  4. Quick Check:

    rm = delete files [OK]
Quick Trick: Remember: rm means remove files permanently [OK]
Common Mistakes:
  • Confusing rm with cp or mv
  • Thinking rm moves files instead of deleting
  • Assuming rm lists files

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes