Recovering deleted files in DOS — previewing what can be restored: Which MS-DOS UNDELETE command option displays a list of deleted files that DOS is capable of restoring before you perform the actual undelete?

Difficulty: Easy

Correct Answer: UNDELETE /LIST

Explanation:


Introduction / Context:
In classic DOS, accidental deletions could sometimes be reversed using UNDELETE, provided directory entries were still available. Safely previewing recoverable files helps avoid mistakes and confirms what will be restored.



Given Data / Assumptions:

  • We are operating in a DOS environment that supports UNDELETE (e.g., DOS 5/6 or MS-DOS with supplemental tools).
  • We want a list of files that can be undeleted before taking action.
  • Directory entries have not been overwritten.


Concept / Approach:

The option /LIST instructs UNDELETE to show candidates for recovery. Other options perform undeletes automatically or prompt per file. Using /LIST is a safe first step, akin to a dry run.



Step-by-Step Solution:

Run UNDELETE with /LIST to enumerate recoverable files.Review names and paths to confirm selection.If satisfied, rerun UNDELETE with appropriate options to restore.Avoid writing new files before recovery to prevent overwriting directory entries.


Verification / Alternative check:

Help screens (UNDELETE /?) show /LIST as a non-destructive listing mode in several DOS versions and add-on utilities.



Why Other Options Are Wrong:

  • UNDELETE .: attempts actual recovery across matches; no preview list.
  • UNDELETE /ALL: restores everything it can without selective review.
  • UNDELETE (no switch): usually interactive but not strictly a listing-only mode.
  • None of the above: incorrect because /LIST exists for this purpose.


Common Pitfalls:

Continuing to use the disk after deletion (overwrites metadata); assuming long file names are supported in pure DOS UNDELETE; forgetting that recovery success depends on directory entry preservation.


Final Answer:

UNDELETE /LIST

More Questions from Disk Operating System (DOS)

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion