Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
emergency_diskspace.sh
screen -S emergency_diskspace -dm
sleep 1 # workaround https://savannah.gnu.org/bugs/?54164
screen -S emergency_diskspace -X stuff '
mkdir /emergency_diskspace;
cd /emergency_diskspace;
for i in {0..9}
do
echo creating 10gb_\$i
dd if=/dev/urandom of=10gb_\$i bs=10M count=1000 iflag=fullblock status=progress;
done
';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment