How to recover files deleted by rm command on Mac?

Posted by Juno to Mac Data Recovery on July 27th, 2017

Is it possible to restore files/directories which was deleted from terminal using rm command? If a file is deleted from graphical interface, it could be restored from Trash, but how can I restore a file that is removed using rm command?

In this passage, we will introduce why we can undo rm command on Mac, and more importantly, offer a free Mac undelete software to recover deleted files on Mac.

The rm command is usually used to delete file permanently as the deleted files will not be saved at Mac Trash. But there are always unexpected things happen. We may mistakenly delete a file by rm command, perform rm command on one file when we actually want to delete another, or use rm command on a file and recognize it is still useful later. When getting into the above problems, we may get very upset for lost file can't be found at Mac Trash and it seems there is no trace to get them back.

Actually, performing rm command on a file doesn't mean we will lose it forever. Although it's quite tough a task to recover files deleted by rm command on Mac, we still have method to make it.

Why we can recover files deleted by rm command on Mac?

Generally speaking, when we delete files or folders through Mac Terminal by rm command, macOS only removes the access information of the files or folders and marks them as deleted. The real data can't be found without special tools but still resides at the original place. As long as the original data haven't been overwritten by new data, we can get them back.

Tips: After deletion, the space where the deleted files occupy has been marked as free and is prepared for new data. Any further operation we performed on the drive may write new data to the free space and make original data been overwritten. So we should avoid using the drive soon after deletion, especially when file is deleted on startup drive.

Recover files deleted by rm command on Mac with free Mac undelete software

To recover files deleted by rm command on Mac, all we need is a free Mac undelete software - iBoysoft Mac Data Recovery.

iBoysoft Mac Data Recovery is a professional and free Mac data recovery software that helps to recover files deleted by rm command, recover deleted files on Mac even if emptied from Mac Trash, recover files deleted by Command + Shift + Delete, recover lost data from unreadable external hard drive, recover data from unmountable hard drive, formatted hard drive, lost partition, invalid volume header hard drive, etc.

Installed iBoysoft Mac Data Recovery on our Mac, it supports to recover documents, photos, videos, emails, music and many other types of files from hard drive, external hard drive, USB hard drive, memory card, etc. on macOS Catalina 10.15/Mojave 10.14/High Sierra 10.13/Sierra 10.12 and Mac OS X 10.11/10.10/10.9/10.8/10.7.

Step-by-step guidance to recover files deleted by rm command on Mac

Step 1: Launch iBoysoft Mac Data Recovery.

Step 2: Select the drive at which we have deleted files by rm command, click "Next" to search for deleted files.

recover files deleted by rm command on Mac

Step 3: Preview files in searching results, choose files we want, and click "Recover" to get those deleted files back.

Step 4: Have a check to ensure all lost files have been successfully restored.

Still have questions?