Archiving anf compression
Linux Essentials +
Chapter 9: Archiving and Compression
Writing here
Questions and Answers
Q1
Compression of a file works by:Removing redundant information
Q2
In general, for which of the following would you want to use lossless compression?A log file
Q3
How would you obtain output similar to the following? compressed uncompressed ratio uncompressed_name >gzip –l tags
Q4
Which command would you use to archive the Documents directory and compress it with bzip2 compression?tar –cjf documents.tbz Documents
Q5
Which flag would you pass to tar in order to have it make a new archive?-c
Q6
In the command tar -cvjf foo.tbz a b c, what are a, b, and c?File names to be added to the archive
Q7
Given the command tar –cvjf homedirs.tbz /home, which of the following are true? (choose two)1. The command will print out each filename as it is processed 2. The output file will be compressed
Q8
You archived your users’ directories into a file called backup.tar.gz. You then view the archive and see the filenames follow this convention: home/username/somefile How will you extract just the files for the user called fred? tar –xzf backup.tar.gz home/fred/
>Q9
Given a file called documents.zip, how can you see what’s in it without extracting the files?
Q10
By default, the zip command replaces uncompressed files with compressed files.False