This question already has an answer here:
I recursively deleted the contents of my root directory with sudo privileges. My display reset, and windowing stopped working. I could no longer run non-buitin commands. Most of my directories (including the home directory disappeared).
What I meant to run:
sudo rm ./* -rf
What I believe I ran:
sudo rm /* -rf
I understand how this command works (see What does rm -rf do?).
I'm trying to get a better sense of how much (and what parts) of the original files and directory-structure physically remains on the hard-drive.
How much of these "remains" are recoverable? E.g is it possible to use data recovery software like TestDisk/PhotoRec to recover the full home dir itself? What about config files?