I know that some of you might be curious about what happens when you try to eliminate every single file and directory inside the root directory of our linux box so I decided to make a video and save you the pain of having to reinstall your system. Here is what happens when you run
rm -Rf /* as root. Here you can see the video:
You see the consequences are visible as soon started to execute this command set and if there are directories that are not eliminated. These directories as is the case
/proc doesn't really exist in the hard drive, it is actually in the RAM thus it cant be deleted while
/var and other directories contain subfolders or files that are actually located in some other memory filesystems like
/var/tmp in my installation of Fedora.
Post-analysis then rm-Rf /
Since I've been asked several times and many have speculated without really having tests I decided to find out what state the system was operating. What survived file and directories?
To answer this I just mounted the old hard drive on another linux install and ran
find /mnt/oldhdd -type yielding results:
How come the exception of the / mnt / oldhdd / run / utmp are all directories.