Services and User Management
An administrator logged in as root must back up /etc/app to /backup/app. The copy must include all subdirectories and keep the original ownership, permissions and timestamps. Which command does this?
Show the answer
Correct answerC. cp -a /etc/app /backup/app
cp -a is archive mode: it recurses and preserves ownership, mode, timestamps and links. cp -r also recurses, but the new files are owned by the invoking user (root here) and get new timestamps, so original ownership is lost.