gzip & gunzip Flashcards

1
Q

gzip

A

Gzip reduces the size of the named files using Lempel-Ziv coding (LZ77).

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

gzip imptfiles.txt

A

This command will create a compressed imptfiles.txt.gz file and delete the old file. The original name will be kept and will have an added .gz on it.

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

gzip -f dupfile.txt

A

This option will force gzip to compress dupfile.txt.

-f, –force, Force compression or decompression.

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

gzip -k file1.txt

A

The -k command tells gzip to keep the original file instead of deleting and replacing it.

-k, –keep, Keep (don’t delete) input files during compression or decompression.

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

gzip -L filename.gz

A

The -L option just displays the license then quits.

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

gzip -r bigfolder

A

This option will recursively compress all of the files in a directories folders and subfolders. It compresses each file in a folder, but doesn’t compress it into one file.

-r, –recursive, Travel the directory structure recursively.

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

gzip -1 file.txt

or

gzip -9 file.txt

A

The -# option determines the speed and quality of compression. It can range from [1-9] where:

  • 1 = Fastest speed, worst compression.
  • 6 = Defaul compression level
  • 9 = Slowest speed, Best compression
  • # , –fast, –best, Regulate the speed of copmression using a specified digit or the words fast and best.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

gzip -v userfile.txt

A

The -v option will display verbose information.

-v, –verbose, Verbose. Display the name and percentage reduction each file compressed and decompressed.

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

gunzip

A

gunzip can currently decompress files created by gzip, zip, compress, compress -H or pack.

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

gunzip

  • c
  • f
  • l
  • n
  • N
A
  • c, –stdout, Write on stdout, keep original files unchanged.
  • f, –force, Force overwrite of output files.
  • l, –list, LIst compressed file contents.
  • n, –no-name, Do not save or store original name and timestamp.
  • N, –name, Save or restore the original name and timestamp.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

gunzip

  • q
  • r

–synchronous

  • t
  • v
A
  • q, –quiet, Suppress all warnings.
  • r, –recursive

–synchronous, Synchronous output (safer if system crashes, but slower)

  • t, –test, Test compressed file integrity.
  • v, –verbose
How well did you know this?
1
Not at all
2
3
4
5
Perfectly