[deleted] That's awesome thanks!
jmcunx To have a chance, try and avoid writes to that drive.
Yeah, I read this while researching, sadly I had already made many more writes to the disk.
I'm going to play with testdisk
thought, I'll test out deleting a file and undeleting it, for future purposes.
-
For context, I accidentally deleted my entire ~/.config
directory. I had rm
aliased to rm -rv
because I'm nuts 🥵 . I was attempting to delete some .core
files in my home dir and did rm .co[TAB]
to autocomplete and hit enter before checking that auto complete was correct. Thankfully, I keep most config files backed up in a git repo and was able to restore them. But it was still a pain getting the system "back to normal" again.
I've since removed the dangerous alias and instead set up a different one that, instead of deleting files, moves them into a trash directory.