Last active
October 30, 2018 03:12
-
-
Save Borillion/5528407069ad4ddf863e1a035253d145 to your computer and use it in GitHub Desktop.
Create 10 100 MB files in bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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