Linux/Sparse files

From Wiki
< Linux
Revision as of 11:07, 22 October 2019 by Marcluer (talk | contribs)

check

du -h file
du -h --apparent-size file


Make existing files sparse

fallocate -d file


Copy sparse file

cp --sparse=always inputfile outputfile


Tar sparse file

-S / --sparse
tar -Scf file.tar inputfile