LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Can you create an empty file and specify the byte length? (https://www.linuxquestions.org/questions/linux-general-1/can-you-create-an-empty-file-and-specify-the-byte-length-150183/)

harryo 02-24-2004 10:10 PM

Can you create an empty file and specify the byte length?
 
I would like to create a dummy file for a CDRom distribution for some database software.

I was wondering if I could specifically create an empty 409,600 kb in length for CD verification.

Thanks,
HarryO

slakmagik 02-24-2004 10:39 PM

Yeah - with 'dd' you can specify the 'bs' and 'count' options and write from /dev/zero.

harryo 02-25-2004 03:21 AM

Excellent, works a charm :)
-=h=-

slakmagik 02-25-2004 10:01 PM

Glad it worked out for you. :) Cool tool, dd is.


All times are GMT -5. The time now is 06:41 AM.