Home > Questions

How to recover deleted files using Terminal on macOS?

I've been trying to recover 2 files I deleted by mistake using the commands: cd . Trash > mv (filename) Something happens as you can see in the photo, but the files cant be found. Im using Snow Leopard 10.6.8. Any tips?

Best Answered by

iBoysoft author Anna Yuan

Anna Yuan

Answered on Tuesday, December 3, 2024

Normally, if you deleted files by macOS Move to Trash, you can find the deleted files in Mac Trash and recover them easily. However, when you deleted files by Terminal, you can't find any trace of the deleted files in Mac Trash and you may become worried.

Don't panic! If you have backed up your Mac with Time Machine or iCloud before, you can recover the Terminal deleted files using Time Machine or iCloud. If you don't have any backups either in Time Machine or in iCloud, then the data recovery software should be your last option to retrieve your deleted files.

However, most commercial data recovery software in the market keeps updating to be compatible with the recent macOS version and the older data recovery package has been abandoned, which means you need to update your Mac to a macOS version that supports downloading and using the data recovery app.

Here, taking iBoysoft Data Recovery for Mac as an example. iBoysoft Data Recovery for Mac is a professional data recovery software that can easily recover deleted files on Mac. This powerful data recovery tool works on macOS 13/12/11/10.15/10.14/10.13/10.12 and OS X 10.11 and is compatible with Intel Macs and Apple Silicon Macs with M1 and M2 chips, which is also able to recover emptied Mac Trash

If you decided to use iBoysoft Data Recovery for Mac to retrieve your deleted files, you can update your Mac to Mac OS X 10.11 first, and then use the Search for Lost Data function to start scanning all lost files on your MacBook. Once the scanning process is finished, you can filter all recoverable files by different file formats so that you can quickly pick up the Terminal deleted files you need.

Select the files, and click "Recover" to retrieve them from the Mac disk. Rember to not store the recovered files in their original place to avoid data loss.

Attention, please! If you don't want to update your macOS or you're worried about updating macOS will erase/overwrite data on your Mac internal drive, then you can try an open-source data recovery software to retrieve your overwritten file, such as TestDisk. Most open-source data recovery app is not maintained anymore and should be available on Mac OS X Snow Leopard 10.6.8.

People Also Ask

Read More Questions

Read More Advice From iBoysoft's Computer Experts

Fix Macintosh HD greyed out in Disk Utility

How to fix Macintosh HD greyed out in Disk Utility?

3 solutions to fix Macintosh HD greyed out in Disk Utility/Recovery Mode or Macintosh HD not mounted. Download free Mac data recoevry software to recover lost data from unmountable Macintosh HD.

Mac Data Recovery Tips

TestDisk Wiederherstellung Partition

TestDisk Partition auf Mac wiederherstellen: TestDisk Alternative

Dieser Beitrag zeigt den Schritt-für-Schritt-Weg, um TestDisk zu verwenden, um Partitionen auf einem Mac wiederherzustellen. Außerdem wird die beste Alternative vorgestellt, wenn TestDisk nicht funktioniert.

Tipps zur Mac-Datenwiederherstellung

Wie man das Problem 'Mac-Dokumente Ordner ist leer' behebt

[Gelöst] Mac-Dokumentordner ist leer

Dieser Beitrag ist ein Tutorial, um Ihnen den Grund dafür zu erklären, warum Ihr Dokumentenordner plötzlich leer ist auf Ihrem Mac und wie Sie das Problem beheben können, einschließlich Tipps zur Datenwiederherstellung.