Which of the following switches of the XCOPY command copies file ownerships and NTFS
permissions on files while copying the files?
A.
/p
B.
/s
C.
/r
D.
/o
Explanation:
The /o switch of the XCOPY command copies file ownerships and NTFS permissions on files while
copying them.
In NTFS file system, when a new file is created, it inherits permissions from its new parent directory.
This might cause security issues when a user copies files. In this case users who did not have access
to the files might gain access on them. Therefore, in order to retain original file permissions, users
have to use the XCOPY /o command.
Answer option B is incorrect. The /s switch of the XCOPY command is used to copy directories and
subdirectories except empty directories.
Answer option A is incorrect. The /p switch of the XCOPY command prompts the user before
creating each destination file.
Answer option C is incorrect. The /r switch of the XCOPY command overwrites Read-only files while
copying data.
Reference. “http.//www.computerhope.com/cdhlp.htm”