Linux/Sparse files

From Wiki
< Linux
Revision as of 11:50, 22 October 2019 by Marcluer (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

check

du -h *
du -h --apparent-size *


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

Links