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
-
Awlex182756yOur teacher used to say: "This happens when the fingers are faster than the brain, so always take a step back and think what you're doing"
Yes, he is the closest thing to a system administrator-stereotype you can imagine -
rfc716828076yHaving rm -rf pause for like 2s when called onto a directory would sometimes save people's days, I guess - phew. π
-
I've never used rn -rf, so excuse me if I'm saying something stupid.
But wouldn't it make sense to add a confirmation to rm -rf? To prevent accidentally fucking yourself? -
bezorp3746yI alias rm to rm -vi for just this reason. If I ever get annoyed with it I just use \rm -fr, but then at least I'm being explicit.
Though that isn't much help on a server π -
Once I was shift-deleting some useless files using the GUI, but didn't realise my pr0n directory was also selected.
Sadly, Linux is too fast. -
@Stuxnet confirmations are useless if you just learn to pass them automatically
-
kaloxy9576yI once had a porn folder, saved as Old_Data. Was once cleaning my laptop and did rm -rf on it... A few weeks later, I had nothing to wank on!! Then it him me!
-
@kLue Oh no all our servers are backupped several times a day but restoring can take a little and that was time I didn't have ;)
-
@kLue ADG? And yeah, as a Linux engineer at a hosting company, I kind of have to work with live servers.
As for terminals I use Terminator. -
verboze76y@nin0x03 zsh (and I assume other shells probably) is cautious enough to ask, "are you sure?" when running `rm -rf` on a dir containing several files. It sometimes gets annoying, but it's saved me a couple of times. There's a shell opt to bypass this check too however, but I use that sparingly.
-
@verboze yes because I have an eternity to save my files....
Though I never had to stop the command.... -
Remind me not to allow you to check my server, don't want you to clear my HDD ππππ
-
hell169546yI did the same but with a symbolic link haha, what should be 1ms was taking more than 5 seconds when it stroke me that I was removing the actual 40GB folder ... Well.. At least had all on backup :)
-
@silverstar yeah, but then when you're sure, you have to wait 20 seconds. Maybe just a y/n confirmation at the start (if you want/have to use -f)
-
The problem with conformations is that you confirm them faster than you can think, too. Happened to me a couple of times, too.
-
Did this in the first two weeks on my work computer... A mac.... Caught it too late tho... Lots of missing files.... Fonts missing on restart ... Just properly fucked
-
@Stuxnet the f stands for FORCE. It’s exactly the definition of an argument that bypasses confirmation
-
geilt4136yEvery time I use rm rf I pause like 1 full minute. Check everything. Have a mini TIA, heart attack then press enter. Another heart attack press ls whew ok.
More adrenaline than any sport you could do especially on production servers, live, during the middle of the work day. -
@AlpineLinnix
That happened to me with /etc
It was a server, that I shared with some friends at school ^^ -
Now I have a script aliased to rm that lists the files and prompt me one more timeπ
Related Rants
Was doing some work on a server today and removing loads of stuff.
rm -rf file1
Etc
Etc
Etc
Went into another directory with very important data. Wanted to do ls -la but my fingers went:
rm -rf ./
.
.
*1 milisecond later*
πΆ
FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK
CTRL+C
CTRL+C
CTRL+C
CTRL+C
CTRL+C
CTRL+C
CTRL+C
CTRL+C
CTRL+C
CTRL+C
CTRL+C
CTRL+C
CTRL+C
CTRL+C
CTRL+C
*VIGOROUSLY CHECKS FILES*
Everything still there π
rant
wtf just happened
phew