brazerzkidaiwish.blogg.se

Gzip unzip
Gzip unzip





gzip unzip

That way we get a compressed archive file and a multi-file or multi-directory archive. But by using the appropriate options with tar, we can cause tar to push the archive file through gzip. The tar program is used to create archives of many files, but it doesn’t have its own compression routines. We can create an archive file that contains a directory tree and all of its files, but we need to bring another command into play. In fact, gzip can only put a single file in an archive. It didn’t create an archive of the entire directory tree. The result is gzip has created an archive file for each text file in the directory structure. Let’s use gzip on the directory tree and see what happens. If you try to extract a file in a directory where the original file-or a different file with the same-exists, gzip will prompt you to choose to abandon the extraction or to overwrite the existing file. RELATED: Why Deleted Files Can Be Recovered, and How You Can Prevent It Decompressing and Overwriting This time, gzip doesn’t delete the archive file. To retain the archive file, we need to use the -k (keep) option again, as well as the -d (decompress) option. This time, we can see that gzip has deleted the archive file after extracting the original file. This will extract the compressed file from the archive and decompress it so that it is indistinguishable from the original file. To decompress a GZ archive file, use the -d (decompress) option.

gzip unzip

This time the original ODS file is retained. gzip -k calc-sheet.ods ls -lh calc-sheet.* But if you prefer to retain the original file, you can use the -k (keep) option. If you need the original file you can retrieve it from the archive file.







Gzip unzip