Linux/Sparse files: Difference between revisions
< Linux
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
== check == | == check == | ||
<pre> | <pre> | ||
du -h | du -h * | ||
du -h --apparent-size | du -h --apparent-size * | ||
</pre> | </pre> | ||
Latest revision as of 11:50, 22 October 2019
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