Post tagged: gzip

Decompressing sparse files

When decompressing a sparse file with gzip, the file is not sparsed anymore. In order to decompress it as sparse, we can use dd:

zcat <sparsefile.bin.gz> | dd conv=sparse of=<sparsefile.bin>

Note that this is not specific to gzip. Also note that some utilities such as xz …