본문 바로가기
OS-OE Knowledge/Linux-Unix KB

Create Dummy Big files

by 스쳐가는인연 2018. 6. 8.

Create Dummy Big files

dd if=/dev/zero of=dummy1G.txt count=1024 bs=1048576

for SSD, no bytes are physically written on the medium at all, so no have to be deleted
dd if=/dev/zero of=dummy1T.txt bs=1 count=0 seek=1T
dd if=/dev/zero of=dummy1G.txt bs=1 count=0 seek=1G

for i in {1..100}; do dd if=/dev/zero of=dummy1G-$i bs=1 count=0 seek=1G; done

written to media
fallocate -l 4G dummy4G.txt

for i in {1..100}; do fallocate -l 10G dummy10G-$i; done

반응형