Artificial intelligent assistant

How to enlarge existing file to specific size I have _hdd.img_ file, which I user as HDD for my virtual machine, but it's size is too small, how can I enlarge it? There is one method, something like: dd if=/dev/zero ds=10GB count=8 >> hdd.img but it takes a lot of time :(

Something like that:


dd if=/dev/zero bs=1 seek=new_filesize count=0 of=your_file


For example this:


dd if=/dev/zero bs=1G seek=1000 count=0 of=test


will enlarge file test to 1000G

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 4a7be4e15ed7fcb34650af2b85c30b8b