Question 220
A learner must duplicate plan.txt into backup.txt without removing the original. One student proposes Run cp plan.txt backup.txt and another proposes Run mv staging/report.txt archive/. Which technical comparison is the soundest?
Explanation
Correct Answer
Correct distinction: Run cp plan.txt backup.txt targets copy while keeping source; cp copies file contents while retaining the original source file. The compared alternative instead serves move to another directory.
Incorrect Answers
Incorrect mapping: Run mv staging/report.txt archive/ is used for move to another directory. It does not displace Run cp plan.txt backup.txt for the described requirement.
The mechanisms are different: cp copies file contents while retaining the original source file. By contrast, mv relocates the file into the destination directory. They are not universally interchangeable.
The third option addresses confirm before file removal: The -i option prompts before removal rather than deleting without asking. The original action remains relevant because cp copies file contents while retaining the original source file.