Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
--force is sometimes necessary I think.
I prefer never using a . or / as start. Or using safe-rm. -
myss44506y@AI-Overlord well ofcourse I did lol.. and actual target directory I meant to delete was also owned by root so there was no other way
-
Root797676y@toriyaki
For people that can't help but rimraf everything out of habit, I recommend writing a script that replaces `rm` and have it print what you're actually going to delete, wait a random amount of seconds, then ask you if you're sure.
For those super-habity people that just wait and type 'y' without thinking or noticing, add a random simple math problem, too. -
@Root I like that idea a lot. I shudder to think of removing /var on a production web server with no backups.
Hmm, time to look into backups.
Related Rants
-
cdrice105"You gave us bad code! We ran it and now production is DOWN! Join this bridgeline now and help us fix this!" ...
-
johnny301when your code is a mess but everything work out in the end
-
MoboTheHobo36My Friend: Dude our Linux Server is not working anymore! Me: What? What did you do? My friend: Nothing I swe...
Life's sometimes just amazing.. like those moments when you do "rm -rf /var" instead of "rm -rf var" and your whole system gets full of errors / unexpected behavior and random crashes.. Since I have project deadline tomorrow, really dunno should I cry or laugh right now
rant
fml
rm -rf
/var