Difficulty: Easy
Correct Answer: CD and CHDIR
Explanation:
Introduction / Context:
Navigating the directory tree is a foundational DOS skill for troubleshooting, file management, and software installation. MS-DOS offers commands that change the current working directory so you can access files and run programs located in different folders. Knowing exactly which commands perform directory changes (and which do not) prevents errors and streamlines command-line workflows.
Given Data / Assumptions:
Concept / Approach:
Two synonymous commands, CD and CHDIR, are implemented internally by the command interpreter to alter the current directory context. Both accept relative and absolute paths and can show the current directory when used with no arguments. Other commands such as MOVE relocate files, not your working position in the directory tree.
Step-by-Step Solution:
Verification / Alternative check:
After running CD or CHDIR, issue DIR to list contents, confirming you are now in the intended directory. The prompt often reflects the new path, providing immediate feedback.
Why Other Options Are Wrong:
a or b alone: Each works, but the question asks for the pair enabling directory changes; the correct concept is that both are valid.
c: MOVE moves files or directories to a new location; it does not change your current working directory.
e: DIR lists directory contents; it does not navigate.
Common Pitfalls:
Forgetting quotes when paths include spaces in later shells; confusing moving files (MOVE) with moving the working directory (CD/CHDIR); omitting backslashes in absolute paths.
Final Answer:
CD and CHDIR
Discussion & Comments