CompTIA
XK0-001 · Question #60
A user has accumulated over 500 MB of programs stored in 25 directories. Now he would like to backup the programs to his home computer by creating a compressed archive and then using ftp to transfer…
The correct answer is C. Use tar with the "z" option to create a compressed archive in one step. See the full explanation below for the reasoning.
Question
A user has accumulated over 500 MB of programs stored in 25 directories. Now he would like to backup the programs to his home computer by creating a compressed archive and then using ftp to transfer the data to his computer at home. Which of the following is the best way to do this?
Options
- AUse gunzip to create a compressed form for each file.
- BUse zcat to create an archive and use gzip to compress the archive.
- CUse tar with the "z" option to create a compressed archive in one step.
- DUse zcat to compress all of the files and then tar to create an archive.
How the community answered
(57 responses)- A5% (3)
- B4% (2)
- C81% (46)
- D11% (6)
Community Discussion
No community discussion yet for this question.