Skip to main content

14.2) Compressing Files


For example, If you have a file called ‘file1’ and you want to reduce its disk usage then type:

gzip file1

This program will replace ‘file1’ by a compressed file called ‘file1.gz’. The ‘.gz’ ending indicates that the gzip command was used to compress it. The ‘file1.gz’ file is compressed now and not much use aside from for storing or transferring.