Difficulty: Easy
Correct Answer: rm
Explanation:
Introduction / Context:
Deleting files is a frequent administrative and user task. Unix/Linux provides a simple command specifically for removing files and, with the right options, directories. Knowing the correct command—and its safety flags—prevents accidental data loss and improves scripting reliability.
Given Data / Assumptions:
Concept / Approach:
The command to remove files is rm. By default it unlinks each file name. To remove directories and their contents, use rm -r (or -rf with caution). Other listed commands are either nonstandard or have different semantics: mv moves/renames files; del is a DOS command; remove is not a standard Unix command-line tool.
Step-by-Step Solution:
Verification / Alternative check:
Run ls before and after rm to confirm removal. Use -i for interactive confirmation if safety is a concern.
Why Other Options Are Wrong:
Common Pitfalls:
Final Answer:
rm.
Discussion & Comments