Updated: 04 October 2024
Create a gzip file of backup.sql and keep the original file
gzip --keep backup.sql
Decompress an archive
gzip -d backup.sql.gz
Freelance software engineer United Kingdom
Updated: 04 October 2024
Create a gzip file of backup.sql and keep the original file
gzip --keep backup.sql
Decompress an archive
gzip -d backup.sql.gz
Updated: 05 April 2026
Extract a tar ball to the current directory
tar -x -f music.tar
Create a compressed tar ball
tar -cpzf foo.tar.gz ~/foo-dir