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? 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 the rm command?

The rm command is usually used to delete file permanently as the deleted files will not be saved at the 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's still useful later. When encountering the above situations, we may get very upset for the 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. In this passage, we will introduce why we can recover files deleted by rm command on Mac, and more importantly, offer a free Mac undelete software to recover deleted files on Mac.

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, the 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 is marked as free and is prepared for new data. Any further operation we performed on the drive where we delete files may write new data to the free space and make the original data been overwritten. So we should avoid using the drive soon after the deletion, especially when file is deleted on the 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.

Download iBoysoft 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 deleted applications from Mac 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.

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

Step 1: Download and install iBoysoft Mac Data Recovery on Mac.

Step 2: Launch iBoysoft Mac Data Recovery.

Free Mac undelete software: iBoysoft Mac Data Recovery

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

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

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

Still have questions?

Related Mac Data Recovery Tips

30 Days Money Back Guarantee

Transactions Protected

High success rate of recovery

7 X 24 Customer Service