Did you know that the original Unix devs were so obsessed with efficiency that they designed the "rm" command to have no confirmation prompt? Legend believes this was to save precious milliseconds, as they thought "real Unix users" would never make mistakes. Of course, this led to many accidental deletions and the birth of the infamous "rm -rf /" command, which could wipe out an entire system with a single typo.
Conversation
Notices
-
nixCraft 🐧 (nixcraft@mastodon.social)'s status on Tuesday, 12-Nov-2024 08:14:15 JST nixCraft 🐧 -
mikeTesteLinux (miketestelinux@mastodon.social)'s status on Tuesday, 12-Nov-2024 08:19:46 JST mikeTesteLinux -
Yap Voon Yee (yapvoonyee@mastodon.social)'s status on Tuesday, 12-Nov-2024 09:41:57 JST Yap Voon Yee @nixCraft if people wanted too they could add a prompt? Maybe a bash script?
-
拔刀问路 (longlivecarryon@mastodon.social)'s status on Tuesday, 12-Nov-2024 10:07:35 JST 拔刀问路 If you never make mistake with "rm -rf" , you won't be qualified for admin.
rm -rf . /
-
Stephan (durchaus@mastodon.social)'s status on Tuesday, 12-Nov-2024 11:31:00 JST Stephan @nixCraft rm -rf is worst when you're using it in a script like: `rm -rf $DIR/` and `$DIR` happens to be empty 🫣
-