Linux/Sparse files: Difference between revisions

From Wiki
(Die Seite wurde neu angelegt: „== check == <pre> du -h </pre> Category:Linux/System Category:Linux“)
 
No edit summary
Line 1: Line 1:
== check ==
== check ==
<pre>
<pre>
du -h
du -h file
du -h --apparent-size file
</pre>
</pre>




== Make existing files sparse ==
<pre>
fallocate -d file
</pre>
== Copy sparse file ==
<pre>
cp --sparse=always inputfile outputfile
</pre>
== Tar sparse file ==
<pre>
-S / --sparse
tar -Scf file.tar inputfile
</pre>


[[Category:Linux/System]]
[[Category:Linux/System]]
[[Category:Linux]]
[[Category:Linux]]

Revision as of 11:07, 22 October 2019

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