How to Compress File in Linux?
Contents How Do I Compress a Tar File in Linux? Compress / Zip. Compress / Zip It with Command Tar -Cvzf New_Tarname. Tar. Gz Folder-You-Want-to-Compress. in...
Contents
How do I compress a tar file in Linux?
- Compress / Zip. Compress / zip it with command tar -cvzf new_tarname.tar.gz folder-you-want-to-compress. In this example, compress a folder named “scheduler”, into a new tar file “scheduler.tar.gz”.
- Uncompress / unizp. To UnCompress / unzip it, use this command tar -xzvf tarname-you-want-to-unzip.tar.gz.
How do I compress a gzip file in Linux?
Linux gzip. Gzip (GNU zip) is a compressing tool, which is used to truncate the file size. By default original file will be replaced by the compressed file ending with extension (.gz). To decompress a file you can use gunzip command and your original file will be back.