The main purpose of the Tar command on Linux is to join multiple files into one, however you can use the flag -z
to use gzip compression as follow
tar -czvf output-file-name.tar.gz folder-to-compress/
Flag | Are |
---|---|
-c | Create new archive |
-z | Compress the file using gzip |
-v | Verbose print more outputs |
-f | Name of the new file |
Oldest comments (0)