Yeah, but it wouldn’t fit in the speech bubble =P
Comment on sudo rm -rf /
stoy@lemmy.zip 1 month ago
Don’t you have to pass the --no-preserve-root flag for this to work these days?
Homo_Erectus@lemmy.zip 1 month ago
Comment on sudo rm -rf /
stoy@lemmy.zip 1 month ago
Don’t you have to pass the --no-preserve-root flag for this to work these days?
Yeah, but it wouldn’t fit in the speech bubble =P
second@feddit.uk 1 month ago
Or use
/*for the path so it globs to all directories under/whilst not triggering the logic which requires–no-preserve-root.hayvan@piefed.world 1 month ago
Yes, that’s how I nuked my workstation once. Part of my development routine was running
sudo rm -rf $SDCARD/*. Guess what happens whenSDCARDisn’t defined.pivot_root@lemmy.world 1 month ago
set -uis your friend. Unless you’re running that command interactively, in which case it just exits the shell without giving any warning at all. Oh, the joys of shells written to be compatible with scripts created 20 years ago…hayvan@piefed.world 1 month ago
It was interactive, but thanks, killing the shell is still better than reinstalling the machine.
Sylvartas@lemmy.dbzer0.com 1 month ago
Shouldn’t it be
/*.*for proper nuking or is that unnecessary ?poolcritter@pawb.social 1 month ago
shopt -s dotglob