5 examples for gzip

{{ score }}
  # Compresses a file into a .gz file
gzip file # creates file.gz
        
{{ score }}
  # gzip a file and keep the original
gzip < file > file.gz
        
{{ score }}
  # decompress gzip to file
gzip -dc < myfile.txt.gz > myfile.txt
        
{{ score }}
  # replace all files ending in '.log' with a zipped version of the same file ending in '.log.gz'
gzip *.log
        
{{ score }}
  # comprime con compresion maxima
gzip -9 file1