![]() You can also pass multiple files as arguments to the command. Use the -v option if you want to see the percentage reduction and the names of the files that are being processed: gzip -v filename filename: 7.5% - replaced with filename.gz If you want to keep the input (original) file, use the -k option: gzip -k filenameĪnother option to keep the original file is to use the -c option which tells gzip to write on standard output and redirect the output to a file: gzip -c filename > filename.gz Verbose output # Gzip will create a file filename.gz and delete the original file.īy default, gzip keeps the original file timestamp, mode, ownership, and name in the compressed file. To compress a single file invoke the gzip command followed by the filename: gzip filename Do not use Gzip to compress images, audio, PDF documents, and other binary files as they are already compressed. Gzip is most often used to compress text files, Tar archives, and web pages. tgz is a Tar archive compressed with Gzip. ![]() If you want to compress multiple files or directory into one file, first you need to create a Tar archive and then compress the. By convention, the name of a file compressed with Gzip should end with either. ![]() Gzip compresses only single files and creates a compressed file for each given file. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |