May 2017
Beginner
552 pages
28h 47m
English
A gzipped tarball is a tar archive compressed using gzip. We can use two methods to create such tarballs:
$ tar -czvvf archive.tar.gz [FILES]
Alternatively, this command can be used:
$ tar -cavvf archive.tar.gz [FILES]
The -z option specifies gzip compression and the -a option specifies that the compression format should be determined from the extension.
First, create a tarball:
$ tar -cvvf archive.tar [FILES]
Then, compress the tarball:
$ gzip archive.tar
If many files (a few hundred) are to be archived in a tarball and need to be compressed, we use the second method with a few changes. The problem with defining many files on the command line is ...