Sparse files: Porovnání verzí

Z ZděchovNET
Skočit na navigaci Skočit na vyhledávání
Bez shrnutí editace
Bez shrnutí editace
Řádek 1: Řádek 1:
Create sparse file:
==Create sparse file==
truncate -s 10G ./file


truncate -s 10G ./file

==Copy locally==

cp from to

==Show real size==

===ls===
Show real size and logical file size:
Show real size and logical file size:
ls -lhs file
ls -lhs file


===du===
Show real file size:
Show real file size:
du -sh file
du -sh file

Verze z 6. 8. 2022, 11:45

Create sparse file

truncate -s 10G ./file

Copy locally

cp from to

Show real size

ls

Show real size and logical file size:

ls -lhs file

du

Show real file size:

du -sh file

Copy over network

rsync

rsync -aS file user@host:/dir

External links