Difficulty: Easy
Correct Answer: TYPE C:\AUTOEXEC.BAT | MORE
Explanation:
Introduction / Context:
Large text files printed to the screen with TYPE can scroll past the visible buffer. Piping output through a pager is a standard console technique to read content screen by screen, improving readability without editing the file.
Given Data / Assumptions:
Concept / Approach:
The pipe character (|) connects the output of one command to the input of another. In DOS, piping TYPE into MORE paginates text by waiting for a keypress at each screenful. Slashes like /P are not valid for TYPE pagination (they are used by other commands), and adding stray punctuation (like a trailing dot) breaks the command.
Step-by-Step Solution:
Verification / Alternative check:
Try TYPE C:\AUTOEXEC.BAT alone and observe rapid scrolling; then compare with the piped command to confirm pagination works.
Why Other Options Are Wrong:
Common Pitfalls:
Forgetting the space before and after the pipe or mis-typing the path, which leads to “File not found.”
Final Answer:
TYPE C:\AUTOEXEC.BAT | MORE
Discussion & Comments