XK0-005 · Question #39
A systems administrator must clean up all application files in the directory /var/log/app. However, the company's security policy requires the files to be kept on the backup server for one year. The…
The correct answer is B. tar -jcvf applicationfiles.tar.bz2 /var/log/app/*. For example, instead of the first example we provided for compressing the stuff directory, you’d run the following command: tar -cjvf archive.tar.bz2 stuff
Question
A systems administrator must clean up all application files in the directory /var/log/app. However, the company's security policy requires the files to be kept on the backup server for one year. The Linux server has only the tar and bzip2 packages installed. Which of the following commands will package and compress the files?
Options
- Atar -zcvf applicationfiles.tar.bz2 /var/log/app/*
- Btar -jcvf applicationfiles.tar.bz2 /var/log/app/*
- Ctar -cvf applicationfiles.tar.bz2 /var/log/app/*
- Dtar -xvf applicationfiles.tar.bz2 /var/log/app/*
How the community answered
(25 responses)- B96% (24)
- D4% (1)
Explanation
For example, instead of the first example we provided for compressing the stuff directory, you’d run the following command: tar -cjvf archive.tar.bz2 stuff
Topics
Community Discussion
No community discussion yet for this question.