Today I required the ability to create an empty (zero filled) file of arbitrary size in order to entirely fill a memory stick. This was actually to ensure a full memory stick was handled correctly by the upcoming PSP Minis title BounceBack.
On Windows this process was incredibly easy and could be carried out using the command line utility fsutil.
fsutil file createnew myfile.bin 1024
On Linux/Unix the same can be achieved using dd.
dd if=/dev/zero of=myfile.bin bs=1024 count=1