Difficulty: Easy
Correct Answer: /W
Explanation:
Introduction / Context:The DIR command in MS-DOS lists files and directories. Its behavior is modified by switches that control sorting, pagination, and layout. Understanding these switches is essential for efficient command-line navigation and file management.
Given Data / Assumptions:
Concept / Approach:DIR /W switches the output to wide format, suppressing file details and showing multiple columns of filenames. In contrast, /P pauses each screenful, /O sorts according to a specified order (e.g., /O:N by name), and /B uses bare format (names only, one per line).
Step-by-Step Solution:
Recall each DIR switch’s purpose: /W = wide, /P = pause, /O = order, /B = bare.Match the requirement “wide format” to the correct switch.Select /W as the correct answer.Verification / Alternative check:Run “DIR /W” and compare to “DIR /B” and “DIR /P” to observe differences in width, pagination, and verbosity.
Why Other Options Are Wrong:/O: sorting, not formatting width. /P: pagination only. /B: bare format prints a single name per line, not wide columns. None of the above: incorrect, since /W is valid.
Common Pitfalls:Confusing /B’s “bare” with “wide,” and assuming sorting switches impact layout; mixing pagination with formatting needs.
Final Answer:/W
Discussion & Comments