CompTIA Linux+ (XK0-004) — Question 61

A file server is sharing a directory called /share between team members inside a company. The fileshare needs to be moved from serverA to /newshare located on serverB with all permissions and attributes preserved. Which of the following commands would BEST achieve this task?

Answer options

Correct answer: A

Explanation

The command 'rsync -aHAX /share/* serverB:/newshare' is correct as it preserves permissions, attributes, and provides efficient copying. The 'dd' command is not suitable for preserving file attributes, 'tar' is designed for archiving rather than direct copying, and 'mirrorlv' does not apply in this context as it is related to logical volume management.