QuestionQ8

Automation, Orchestration, and Scripting

A systems administrator is making a backup copy of the /home/ directory. Which command lets the administrator archive and compress the directory simultaneously?

  • A cpio -o /backups/home.tar.xz /home/
  • B rsync -z /backups/home.tar.xz /home/
  • C tar -cJf /backups/home.tar.xz /home/
  • D dd of=/backups/home.tar.xz if=/home/
Explanation

tar uses -c to create an archive, -J to compress it with xz, and -f to specify the archive filename. Thus it creates a compressed .tar.xz archive containing /home/.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!