Bird
0
0

Which rm option prompts you before deleting each file?

easy📝 Conceptual Q2 of 15
Linux CLI - File and Directory Operations
Which rm option prompts you before deleting each file?
A<code>rm -r</code>
B<code>rm -f</code>
C<code>rm -i</code>
D<code>rm -v</code>
Step-by-Step Solution
Solution:
  1. Step 1: Understand -i option

    The -i flag stands for interactive mode, which asks for confirmation before deleting each file.
  2. Step 2: Compare other options

    -f forces deletion without prompts, -r is recursive deletion, and -v is verbose mode showing files being deleted.
  3. Final Answer:

    rm -i -> Option C
  4. Quick Check:

    Interactive deletion uses -i [OK]
Quick Trick: Use -i with rm to confirm each file deletion [OK]
Common Mistakes:
MISTAKES
  • Confusing -f (force) with -i (interactive)
  • Using -r for prompting instead of recursion
  • Assuming -v prompts before deletion

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes