4 ms·
I love rust and all, but essentially one could create a non-clunky shell variant of it. dd an image, mkfs.ext4 out of it, mount it and then a bit more elaborate
by Keyframe 3y ago
I love rust and all, but essentially one could create a non-clunky shell variant of it. dd an image, mkfs.ext4 out of it, mount it and then a bit more elaborate version (but not much) of: for i in $(seq 1 1000000000); do touch "file-${i}.txt"; done
no? it'd probably die soon.
- hawski 3y agoThe author stated: > I’ve done this before, but this time I made it a little simpler for me to do it again: everything in one Rust program rather than clunky scripts. The author then used this Python script: http://git.liw.fi/billion-files/tree/create-files http://git.liw.fi/billion-files/tree/create-files For a shell script version I would like to remind you that you can "touch" multiple files at the same time. There probably is a balance between the length of touch argument list (it takes time to generate it) and running more processes.