CompTIA
XK0-006 · Question #13
A systems administrator is creating a backup copy of the /home/ directory. Which of the following commands allows the administrator to archive and compress the directory at the same time?
The correct answer is C. tar -cJf /backups/home.tar.xz /home/. The tar -cJf command creates (-c) an archive, compresses it with XZ (-J), and writes it to a file (- f). This allows archiving and compression of the /home/ directory in one step.
System Management
Question
A systems administrator is creating a backup copy of the /home/ directory. Which of the following commands allows the administrator to archive and compress the directory at the same time?
Options
- Acpio -o /backups/home.tar.xz /home/
- Brsync -z /backups/home.tar.xz /home/
- Ctar -cJf /backups/home.tar.xz /home/
- Ddd of=/backups/home.tar.xz if=/home/
How the community answered
(24 responses)- B4% (1)
- C92% (22)
- D4% (1)
Explanation
The tar -cJf command creates (-c) an archive, compresses it with XZ (-J), and writes it to a file (- f). This allows archiving and compression of the /home/ directory in one step.
Topics
#tar#compression#backup#archiving
Community Discussion
No community discussion yet for this question.