While working with MS-DOS, which command is used to more file from one directory to another? A. Rename B. Copy C. Move D. Cp

Rename
Copy
Move
Cp

The correct answer is C. Move.

The move command is used to move a file from one directory to another. The syntax for the move command is:

move [/y] source destination

The source is the file or files that you want to move, and the destination is the directory where you want to move them. The /y option suppresses the confirmation prompt that is displayed when you try to overwrite an existing file.

For example, to move the file “myfile.txt” from the current directory to the directory “c:\myfiles”, you would use the following command:

move myfile.txt c:\myfiles

To move multiple files at once, you can use wildcards. For example, to move all of the files in the current directory that start with the letter “a”, you would use the following command:

move *a c:\myfiles

The move command can also be used to move directories. To move a directory, use the following syntax:

move directory destination

For example, to move the directory “myfiles” to the directory “c:\mydocuments”, you would use the following command:

move myfiles c:\mydocuments

The move command is a powerful tool that can be used to organize your files and directories.

Exit mobile version