CH9 Flashcards
Compression of a file works by?
Eliminating gaps within the file
Consolidating multiple files into one.
Removing redundant information
Storing most of the data on removable media and just leaving a pointer
Removing the high order bit from each byte
Removing Redundant Information
In general, for which of the following would you want to use Lossless Compression?
MP3 Audio File An Encrypted Email A JPEG Image A Log File A Movie
A Log File
Lossy Compression? (Choose Three)
Usually results better compression than lossless
Is often used with Images
Is often used with Documents
Decompresses to an identical version as the original
Sacrifices some quality
Usually results better compression than lossless
Is often used with Images
Sacrifices some quality
You type gzip myfile.tar. What happens? (Choose Two)
myfile.tar is unarchived into the current directory
An error; you forgot to pass the name of the output file
myfile.tar.gz holds a compressed version of myfile.tar
An error; you forgot to specify the file with -f
myfile.tar is removed
myfile. tar.gz holds a compressed version of myfile.tar
myfile. tar is removed
How would you obtain output similar to the following?
compressed uncompressed ratio uncompressed_name278168 1016950 72.6% tags
gzip -l tags
gunzip -t tags
file tags
gzip -l tags
Which command will show you what is inside the compressed tarball with the name of foo.tar.gz?
tar -tif foo.tar.gz tar -lf too.tar.gz tar -tf foo.tar.gz tar -xf foo.tar.gz tar -tzf foo.tar.gz
tar -tzf foo.tar.gz
Given a file called documents.zip, how can you see what’s in it without extracting the files?
zip -lf documents.zip unzip -l documents.zip unzip -list documents.zip zip -l documents.zip showzip documents.zip
unzip -l documents.zip
The three main modes of TAR are? (Choose Three)
List Create Compress Copy Extract
List
Create
Extract
Which two programs use the Lempel-Ziv-Markov chain algorithm? (Choose Two)
xz lossless lossy bzip gzip
xz
gzip
By default, the ZIP command replaces uncompressed files with compressed files?
True
False
False