Skip to content

Instantly share code, notes, and snippets.

@Borillion
Last active October 30, 2018 03:12
Show Gist options
  • Save Borillion/5528407069ad4ddf863e1a035253d145 to your computer and use it in GitHub Desktop.
Save Borillion/5528407069ad4ddf863e1a035253d145 to your computer and use it in GitHub Desktop.
Create 10 100 MB files in bash
#!/bin/bash
#Assumes a block size of 512 bytes
for i in {0..10};
do
dd if=/dev/urandom of=file${i}.raw count=204800
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment