Question 270
An instructor presents the following real-world Linux situation: A class unpacks a downloaded archive directly into the home folder and accidentally scatters many files into existing folders. What should an instructor recommend for subsequent exercises?
Explanation
Correct Answer
Always inspect archive paths and restore into a test directory before a live migration. This practice reduces recurrence of the same problem. Technical reason: The -C option changes the extraction destination, reducing accidental overwrites in the current directory. A controlled repeat test should show: Every extracted entry lands under the dedicated destination and the original home files remain intact.
Incorrect Answers
The proposed action focuses on a control governed by: Confirm archive format and portability before sharing compressed bundles. In this question the binding condition is: Always inspect archive paths and restore into a test directory before a live migration. Applying “Always inspect archive paths and restore into a test directory before a live migration” addresses that specific cause instead.
This option would change the part of the system described by: Make archive inspection a mandatory step before restoring untrusted packages. The reported behavior instead arises because always inspect archive paths and restore into a test directory before a live migration. The direct remediation is “Always inspect archive paths and restore into a test directory before a live migration”.
Recognize archive extensions and inspect contents before extraction. That explains why “Recognize archive extensions and inspect contents before extraction” is useful for its own dependency, but the present failure follows a different constraint: Always inspect archive paths and restore into a test directory before a live migration. The targeted correction is “Always inspect archive paths and restore into a test directory before a live migration”.