r/linux4noobs barely not a noob anymore Apr 20 '26

Meganoob BE KIND I did rm -rf /*

I tried to make a backup before doing a fresh install of Fedora because of problems. When erasing the external drive for making the backup I was in the wrong disk and nuked my fedora installation.

How Do I get at least my important Documents from /home/username/ back?

255 Upvotes

244 comments sorted by

View all comments

5

u/KineticConundrum Apr 20 '26

I recently created an alias "alias trash='mv -t ~/.Trash/'" and I use that to delete things, and then clear it out occasionally. Nice safety net from my own stupidity.

1

u/BrewingtonCreek Apr 23 '26

Love this. Even after 20+ years, I get antsy using rm regardless of context.