MODULE 9- Archiving and compression Flashcards

1
Q

What term describes combining multiple files into one to reduce overhead and make them easier to transmit?

A

Archiving

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

Which type of compression is required for things that must remain intact, like documents, logs, and software?

A

Lossless compression

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

What is the term for decompressing an archive and extracting files from it?

A

Un-archiving

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

Which type of compression ensures the decompressed file is identical to the original?

A

Lossless compression

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

What process removes redundant information from files to reduce storage or transmission size?

A

Compression

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

Which type of compression removes information to reduce size, resulting in a file that may be slightly different from the original?

A

Lossy compression

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

Which command decompresses files that were compressed with gzip?

A

gunzip

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

What kind of files typically use lossy compression to reduce size while maintaining acceptable quality?

A

Media files like images, audio, and video

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

What happens when you repeatedly compress and decompress a file using a lossy algorithm?

A

The file becomes increasingly distorted and may become unrecognizable.

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

Why is compressing files before sending them to tape or over slow networks often preferred?

A

It reduces transmission time and improves performance.

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

Which Linux tool is commonly used to compress files using the Lempel-Ziv algorithm?

A

gzip

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

What file extension is added to a file compressed with gzip?

A

.gz

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

What command can also be used instead of gunzip to decompress a .gz file?

A

gzip -d

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

What is the result of running gzip longfile.txt on a file in Linux?

A

The file is replaced with longfile.txt.gz, and the original is removed.

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

What command shows the compression ratio and file sizes of a .gz file?

A

gzip -l filename.gz

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

Which compression tool uses the Burrows-Wheeler block sorting algorithm and produces .bz2 files?

A

bzip2

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

What is the advantage of bzip2 over gzip?

A

Better compression ratio, but uses more CPU time.

3
Q

Which tool is used to decompress .bz2 files in Linux?

3
Q

What is a key reason to use archiving when backing up directories?

A

It is easier to manage one archive file than updating many individual files.

3
Q

Which image format uses lossy compression and allows adjustable quality settings?

3
Q

What compression tool uses the Lempel-Ziv-Markov chain algorithm and produces .xz files?

3
Q

Which compression tool offers the best of both worlds: gzip-like speed and bzip2-like compression?

3
Q

Which decompression tool corresponds to the .xz format?

3
Q

What is a common misconception when trying to compress an already compressed file?

A

That it will become smaller, when in fact it usually won’t.

3
Which image formats use lossless compression?
PNG and GIF
4
What artifacts might appear in lossy-compressed images if the quality is too low?
Rough edges or discolorations
4
Which Linux command is traditionally used to create a single archive file from multiple files, especially for backup or transmission?
tar
4
Which option creates a tar archive from one or more input files?
-c
4
Which option specifies the name of the archive file in a tar command?
-f ARCHIVE
4
Which command creates an archive named alpha_files from all files starting with "alpha"?
tar -cf alpha_files.tar alpha*
4
What are the three main modes of the tar command?
→ Create, Extract, List.
4
Which option in tar tells it to compress the archive using gzip?
-z
4
Which command creates a tar.bz2 archive of a folder named School using bzip2?
tar -cjf School.tar.bz2
4
Which command compresses all alpha files and creates tar archive directly using gzip and creates alpha_files?
tar -czf alpha_files.tar.gz
5
5
Which option tells tar to compress the archive using bzip2 instead of gzip?
-j
6
7
8
8