I had a need for several files of various sizes to do some network testing with. I found a very good us for dd here.
dd if=/dev/zero of=10mb-file.bin bs=1024k count=n
Using the above command (and replacing n for a value) allows the creation of empty files with the size specificed. Need a 10Mb file, n = 10. Need a 100Mb file… n = 100. You get the idea.
Related posts:
- Burn ISO from command line in Linux Quick and simple way of burning an ISO image from...
- Find Text and Find/Replace Easier Than You Think in Linux How to search all files for a text string: grep...
- Remove bonded interface in OpenFiler I decided to try and use NIC bonding in OpenFiler...
Related posts brought to you by Yet Another Related Posts Plugin.
