CH9 Flashcards

1
Q

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

A

Removing Redundant Information

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

A Log File

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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

A

Usually results better compression than lossless
Is often used with Images
Sacrifices some quality

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

A

myfile. tar.gz holds a compressed version of myfile.tar

myfile. tar is removed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

A

gzip -l tags

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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
A

tar -tzf foo.tar.gz

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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
A

unzip -l documents.zip

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

The three main modes of TAR are? (Choose Three)

List
Create
Compress
Copy
Extract
A

List
Create
Extract

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which two programs use the Lempel-Ziv-Markov chain algorithm? (Choose Two)

xz
lossless
lossy
bzip
gzip
A

xz

gzip

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

By default, the ZIP command replaces uncompressed files with compressed files?

True
False

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly