#Bash, 26 bytes
Bash, 26 bytes
yes>y&while :;do rm y;done If I were to expand this one-liner, I would get this:
yes > y & # Write out infinitely to the file y in the current directory while true # Let's do something forever do # Here's what we're going to do rm y # delete y done # That's all we're going to do This can't exactly compete with the 10 byte PowerShell line, but it'll hold its own against the others. See my other answer for the 6 byte version.