Sparse files

Z ZděchovNET
Skočit na navigaci Skočit na vyhledávání

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