Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

How to revert rm -rf in Mac OS X?

Writer Andrew Henderson

I was trying to run a set of commands (all starting with rm -rf) to completely remove an application in Mac OS X. All my folders in Desktop are accidentally removed somehow. Is there a way to bring them back?

3

1 Answer

You can use PhotoRec but keep your expectations low, it's pretty unlikely that you would get back your data after an rm -rf operation. You can usebrew to install PhotoRec, it's part of testdisk (brew install testdisk).

If the files lost were on your Desktop, you may want to check on iCloud. By default Desktop and Documents files sync to iCloud Drive and most people don't deactivate that setting.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy