nerdexam
CompTIA

FC0-U61 · Question #329

Which of the following switches of the XCOPY command copies file ownerships and NTFS permissions on files while copying the files?

The correct answer is D. /o. The XCOPY command in Windows offers various switches to control how files are copied, including options to preserve file attributes like ownership and NTFS permissions.

IT Concepts and Terminology

Question

Which of the following switches of the XCOPY command copies file ownerships and NTFS permissions on files while copying the files?

Options

  • A/p
  • B/s
  • C/r
  • D/o

How the community answered

(65 responses)
  • A
    2% (1)
  • B
    3% (2)
  • C
    5% (3)
  • D
    91% (59)

Why each option

The XCOPY command in Windows offers various switches to control how files are copied, including options to preserve file attributes like ownership and NTFS permissions.

A/p

The /p switch in XCOPY prompts the user before creating each destination file, requiring confirmation before writing.

B/s

The /s switch in XCOPY copies directories and subdirectories, except for empty ones, but it does not specifically handle file ownership or permissions.

C/r

The /r switch in XCOPY overwrites read-only files, allowing files with the read-only attribute to be replaced at the destination.

D/oCorrect

The /o switch for the XCOPY command is specifically used to copy file ownership and NTFS access control list (ACL) permissions along with the files. This ensures that the security attributes of the files are maintained at the destination.

Concept tested: XCOPY command switches for permissions

Source: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/xcopy

Topics

#XCOPY command#file permissions#NTFS security

Community Discussion

No community discussion yet for this question.

Full FC0-U61 Practice