CompTIA A+ Core 2 (220-1202)Operating SystemsMedium
A user is attempting to transfer a large number of files and directories, including empty subdirectories and NTFS permissions, from one network share to another. The transfer needs to be robust, capable of resuming interrupted transfers, and provide detailed logging. Which command-line utility is best suited for this task?
- Acopy
- Bmove
- Crobocopy
- Dxcopy
Show answer & explanationAnswer & explanation
Correct answer: C. robocopy
Robocopy (Robust File Copy) is specifically designed for robust file copying, including features like resuming interrupted transfers, copying NTFS permissions, and detailed logging, making it superior to xcopy or copy for complex scenarios.
Why the other options are wrong
- A. copy is a basic command for copying files, not directories, and lacks advanced features.
- B. move is used to move files and directories, not copy them, and lacks the advanced features for robust transfer.
- D. xcopy is an older command that can copy directories and subdirectories but lacks the robustness and advanced features of robocopy, especially for permissions and resuming.
Robocopy (Robust File Copy)
A powerful command-line utility for copying files and directories in Windows, known for its robustness, advanced features, and ability to handle complex transfer scenarios.
- Can mirror directory trees.
- Copies NTFS permissions, timestamps, and attributes.
- Supports resuming interrupted transfers and detailed logging.
Memory trick: ROBOCOPY is the 'Robust' way to copy everything.