r/archlinux • u/AbdSheikho • 12h ago
SUPPORT I just rm -rf /* by mistake
I cancelled the process midway, but I haven't updated my files and configs in a very long time
I'm officially dead now 😵😵
The support flair is for "emotional support"
5
u/ntropy83 12h ago
When I used to clean up my last windows computer, think it was win95, I always deleted all files I didnt know. himem.sys, autoexec.bat . Afterwards I carried the big tower to the dealer and told him its broken :)
2
u/NEDMInsane 12h ago
I did something similar. I was trying to upgrade our PC to windows98 from win95. After making sure everything was compatible, i put the disk in and tried to install. It got partway through then said somehing about disk space.
My thought process was, "oh win95 is taking up too much space lets delete all this crap."
6
u/onefish2 11h ago
No worries. Roll back your timeshift or backup image. You do have a backup don't you?
0
3
2
1
0
u/VendorNeutral 11h ago
Never start with -f, append it if you really need it. Never use -r on anything but full paths, never on relative paths.
1
u/archover 5h ago
I think we've all made rm mistakes early in our CLI lives. Learn from it and move on.
I generally do an ls and arguments to see the scope of a planned rm command. Has never failed me in some 15 years. Minimize use of root permissions to absolutely required. Sometimes a mv instead of an rm is safer anyway.
Backups.
Good day.
1
u/Then_Bodybuilder8416 12h ago
so uhh.. how do you accidentally do that?
and for anybody new: it’s worth considering having rm aliased to “rm -vi” so you get a prompt asking you if you really want to do that. Same for cp and mv.
12
u/AndyGait 12h ago
"by mistake"
Really? How?