The Picard Maneuver@lemmy.world to Funny: Home of the Haha@lemmy.world · 2 days agoJust like Grandma used to saylemmy.worldimagemessage-square23linkfedilinkarrow-up1443arrow-down111
arrow-up1432arrow-down1imageJust like Grandma used to saylemmy.worldThe Picard Maneuver@lemmy.world to Funny: Home of the Haha@lemmy.world · 2 days agomessage-square23linkfedilink
minus-squareyetAnotherUser@discuss.tchncs.delinkfedilinkarrow-up17·2 days agoYou don’t need the --no-preserve-root flag for that command. /* is a shorthand for [every directory in / separated with a space]. rm doesn’t even get to see the *, it is automatically substituted by your shell prior to rm being started. sudo rm -rf /* is therefore exactly the same as: sudo rm -rf /bin /boot /dev /etc /home /lib /lib64 /lost+found /mnt /opt /proc /root /run /sbin /srv /swapfile /sys /tmp /usr /var
minus-squareessell@lemmy.worldlinkfedilinkarrow-up7arrow-down1·1 day agoAre you one of those vibe codes I’ve been hearing about? 😮
You don’t need the
--no-preserve-root
flag for that command./*
is a shorthand for [every directory in/
separated with a space].rm
doesn’t even get to see the*
, it is automatically substituted by your shell prior torm
being started.sudo rm -rf /*
is therefore exactly the same as:sudo rm -rf /bin /boot /dev /etc /home /lib /lib64 /lost+found /mnt /opt /proc /root /run /sbin /srv /swapfile /sys /tmp /usr /var
Are you one of those vibe codes I’ve been hearing about? 😮