You need to create a backup of a directory /home/data preserving permissions, ownership, hard links, and ensure high compression. Which command is most appropriate?
Correct Answer: tar -cvzf backup.tar.gz /home/data
Explanation: Using tar with options -c (create), -v (verbose), -z (gzip compression), and -f (file name) creates an archive preserving permissions, ownership, links, and directory structure while compressing data efficiently. This aligns with exam objectives on file management, archiving, compression, and backups.
Correct Answer: tar -cvzf backup.tar.gz /home/data
Explanation: Using tar with options -c (create), -v (verbose), -z (gzip compression), and -f (file name) creates an archive preserving permissions, ownership, links, and directory structure while compressing data efficiently. This aligns with exam objectives on file management, archiving, compression, and backups.