How can we GZip every file separately?
I don't want to have all of the files in a big tar.
To compress multiple files at once using gzip , we use the gzip command with -d option followed by file names to be decompressed separated by a space. It decompresses the files main. py. gz , file.
2 Answers. Unlike ZIP, RAR or 7-Zip, for example, gzip can only compress one file. As you've already noted, there is the tar program which can serialize multiple files into one which makes them ready for gzip .
You can use gzip *
Note:
-k
(--keep
) option to keep the original files. If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With