MacOS – I accidentally removed all files with “rm -rf *”. How to recover

data-recoverydeletingitermmacosrecovery

I accidentially deleted every single file in my home folder of my Mac using rm -rf * in iTerms. I intended just to clear one folder, but clearly did not know what I was doing. Yes feel free to laugh, it's terrifying as well!

How can I recover my deleted files?

The files are not in Trash.
There is no Time Machine backup.
OS X Yosemite 10.10.4

Best Answer

If I was in the same or similar situation, this is what I'd try...

Using another Mac I'd download Yosemite from the App Store and then create a USB Installer. Next I'd boot the Mac with the Yosemite USB Installer and install Yosemite to an External USB Drive, preferably a USB 3.0 HDD/SSD or even a large Thumb Drive. Once the install to the External USB Drive is complete I'd boot the Mac from it and then download and install Ontrack EasyRecovery (on the external disk) then shutdown and move the External USB Drive to your MacBook Pro and boot from it. Then run Ontrack EasyRecovery and see what can be recovered. If the trial shows promising results then purchase the product and recover as much of your User Data that you can.