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

comment résoudre WD Drive Unlock va endommager votre ordinateur Vous devriez éjecter le disque

Réparé! WD Drive Unlock va endommager votre ordinateur

Ce post traite du message d'erreur disant 'WD Drive Unlock va endommager votre ordinateur. Vous devriez éjecter le disque.', le lecteur devient inaccessible sur Mac, et explique comment accéder aux données sur le lecteur.

conseils de récupération de données mac

SDカードから画像が読み込まれない

SDカードから画像が読み込まれない場合の修正方法とデータの回復方法

さまざまなシナリオでSDカードから画像が読み込まれない場合の修正方法を知るには、この投稿を読んでください。また、iBoysoft Data Recoveryを使用して簡単に画像を回復することができます。

Gelöschte Safari-Historie auf dem Mac wiederherstellen

[Top 5 Möglichkeiten] Wiederherstellen gelöschter Verlauf von Safari auf Mac

Es geht darum, wie man gelöschten Safari-Verlauf auf Mac/MacBook wiederherstellen kann. Wie man den gelöschten Safari-Verlauf findet und wie man die History.db-Datei öffnet, wird ebenfalls behandelt.

Tipps zur Mac-Datenwiederherstellung