How to Recover Files Deleted by RM on Mac

Roxanne updated on Feb 21, 2020 to Mac File Recovery | How-to Articles

Trying to recover RM deleted files or undo RM command on Mac? Read on and learn how to find and recover files deleted by RM command from Mac with EaseUS Mac drive recovery. All types of files can be recovered by this file recovery software for macOS 10.14 - OS X 10.6.

Page Navigation:

Delete Files Using the RM Command

RM or RM - R command is used in Mac Terminal to delete files permanently. When you can’t empty the Trash or a file is locked, you don't have permission to delete one or more files. This sort of glitch is annoying, but you can use these command lines to provide an easy solution. However, it’s dangerously easy to delete files with the RM or RM - R command.

For example, if you had a file here named MyFile.rtf that you never, ever wanted to see again, you could run this command:

rm MyFile.rtf

If you want to delete a directory full of archives, containing sub-directories and files, run the command like this:

rm -R Archives

The RM command is dangerous because once you delete a file through this command, you cannot restore the data from Trash. Unlike when you move files to the Trash from the Finder, the deleted files are not saved in the Mac Trash. Therefore, it is advised to always keep a backup before attempting to use the RM command. You can turn on Time Machine or use data backup software for mac to keep these data safe. 

Can You Recover RM Command Deleted Files 

What if you don't have backups and want to get RM deleted files back? How can you recover these lost files easily?

RM command deleted files case:

"Yesterday, when I tried to clean up the trash on my Mac, I found there is a stubborn file which is difficult to remove. So I used rm - R command to do it. It removes the stubborn file from my trash successfully. But at the same time, the command line also erased all desktop file. Is it possible to recover files deleted by rm on Mac? If yes, how to do it?"

It is possible for you to recover deleted files on Mac after using rm command because when you delete files or folders using the RM command, the content of the files or folders is not permanently erased. 

  • The system only removes the link to the file making it unable to be found or accessed without special tools.
  • Space (these files occupy) is marked as free space and can be used for new files or for additional content added to existing files. You'd better stop using the disk in order to prevent your deleted files from being overwritten.

So, you can easily get back the deleted files on Mac if you use a reliable Mac data recovery software

Steps to Recover Deleted Files After Using RM Command on Mac

EaseUS Mac drive recovery is rated as one of the best software for Mac data recovery. It is a reliable file recovery program that works well in Mac file undelete. It has a comprehensive set of functions that allow data recovery from critical data loss scenarios.

By using EaseUS Data Recovery Wizard for Mac, the files deleted accidentally by the RM command can be restored with simple steps. Now you can learn the detailed guide about how to do the undelete job.

Step 1. Select the location where your important data & files were deleted and click the "Scan" button.

select the location where data was deleted and click scan

Step 2. The software will run both quick scan and deep scan and work hard to find as many deleted files as possible on the selected volume.

scan the selected disk to find deleted files on your Mac

Step 3. The scan results will be displayed in the left pane. Just select the file(s) and click the "Recover Now" button to get them back.

click recover now button to recover deleted files on your Mac

How to Use RM Command on Mac Safely

Although the RM is easy to use, using it properly and safely becomes important. There are some tips to safely use this command:

1. Use the - i flag for protection.

For example, rm - iR Archives. This will ask you to confirm the deletion of each item. This can be annoying, but unless you’re really sure you want to delete all those files, it’s probably best to be safe.

2. Don't use it unless you really don’t need the file(s) anymore.

3. Back up Data Regularly

Take care of the data before they are gone! EaseUS ensures the safety of your files. Data Protection option keeps your files protected and safe before something is merely happening. You'll never need to recover deleted files on Mac!

Was This Page Helpful?


Frequently Asked Questions

1. Why choose EaseUS Data Recovery Wizard?

"EaseUS Data Recovery Wizard is the best we've seen. It's far from perfect, partly because today's advanced disk technology makes data-recovery more difficult than it was with the simpler technology of the past, but it's fast and efficient..."PCMag

"The first thing you'll notice about EaseUS Data Recovery Wizard Pro is that its interface is very clear and uncluttered, with only a small collection of self-explanatory controls. You won't find lots of extra options hidden in a system of hidden menus, either; what you see really is what you get."techradar

"Recover lost files, even after deleting a partition or formatting your drive."Macworld

2. Why cannot I recover 2GB data for free?

It is recommended to check the version installed is Free or Trial because they are different versions.

Trial has data preview function but cannot save any files, while the Free version enables to recover 2 GB files. The default free space is 500 MB and you may share the product on social media to get another 1.5 GB.

3. Why cannot the recovered files be opened?

A file is saved as 2 parts on the storage device: directory info (which is comprised by file name, time stamp and size info, etc.) and data content.

If the files with original file names and folder structures cannot be opened, one possible reason is the corrupted directory info. There is still a chance to recover the data content with the RAW Recovery method in our software.

4. Why isn't it suggested to recover the files back to the original drive?

The storage structure of the lost files would be altered or damaged by any changes on the drive. If you save the recovered files back to the same drive, the original data structures and data content would be corrupted or overwritten, which causes permanent data loss. So you should prepare another disk to save the files.

5. How can I check whether my data is recoverable or not before purchase?

The Free version helps you save 2GB files, so verify the recovery quality of our product before purchase.

6. How long does it take to scan the drive?

It strongly depends on the capacity of your hard drive and the performance of your computer. As reference,most drive recoveries can be completed in around 10 to 12 hours for a 1-TB healthy hard drive in general conditions.

About Data Recovery Wizard

It's super easy to recover 250+ types of files after deletion, disk formatting and virus infection. Click the links and compare the difference of each version.