Compress multiple directories (folders) with gzip
gzip
only compresses a file into an archive, not a collection of file or directories. So you need to use the utility tar
to store multiple files or directories into one file before compressing them. To do so, run:
$ tar -vcf folder.tar folder1 folder2 file1
$ gzip folder.tar
personal computing command-line interface (cli) gnu linux trisquel shell literacy office applications wiki tar