Vidyalelo
Computer Science · Q96

Disk Operating System (DOS)

Engineering and GATE · Computer Science · question 96

Q96

While working with MS-DOS, which command is used to more file from one directory to another?

A.
Rename
B.
Copy
C.
Move
Answer
D.
Cp

Answer: Option C

Solution

Answer: Option C
Solution:
To move a file from one directory to another in MS-DOS, you use the move command. Here’s how each option works:
Option A: Rename is used to rename a file or directory but does not move it to a different directory.
Option B: Copy is used to make a copy of a file or directory, but it does not remove the original file from its current location.
Option C: Move is used to move a file or directory from one location to another within the same drive or to a different drive in MS-DOS.
Option D: Cp is not a valid command in MS-DOS for copying or moving files.

Therefore, Option C is the correct command to move a file from one directory to another while working with MS-DOS.