» Linux » Examen sur Linux » Examen 201 : Advanced Administration » Section 3 » Question 8/20
8.You want to create a compressed backup of the users home directories so you can issue the command gzip /home/* backup.gz but it fails. The reason it failed is that gzip will only compress one ____ at a time.
Answer: file

Explanation: The command: gzip backup.gz will compress and rename it to backup.gz. This only works with a single file. To compress multiple files into one file (archive), you should use the tar utility with the z option. Tar can archive multiple files into a single file (archive). The z option causes tar to use gzip to compress the files first.

Reference: http://www.oreillynet.com/linux/cmd/g/gzip.html

« Question 7 Question 9 »