Jak utworzyć plik o danym rozmiarze w Linux?
dd if=/dev/zero of=upload_test bs=1M count=size_in_megabytes
Glamorous Goosander
dd if=/dev/zero of=upload_test bs=1M count=size_in_megabytes
dd if=/dev/zero of=upload_test bs=file_size count=1
ls -lh | grep filename
# Create a file of 5MB
# -s, --size
# truncate command extends or truncates a file to match
# the given size, if the file doesn't exist it creates it
truncate -s 5M dest-file.txt