Restoring Deleted Files
The Complete Guide to Restoring Deleted Files
Accidentally deleted a file? Don’t panic. Whether you're using Windows, macOS, or Linux, this guide will walk you through multiple ways to restore deleted files quickly and safely.
🖥 Windows File Recovery Methods
Recycle Bin:
Open Recycle Bin on Desktop
Right-click deleted file → "Restore"
File History:
Settings → Update & Security → Backup
Use "Restore files with File History"
Windows File Recovery Tool (CMD):
Install from Microsoft Store → Open via CMD
# Example: Restore from C: to E:
winfr C: E: /regular /n \Users\YourName\Documents\Important.docx
🍎 macOS File Recovery Methods
Trash Recovery:
Click Trash icon in Dock
Right-click file → "Put Back"
Time Machine:
Connect your Time Machine drive
Open folder where file was → Click Time Machine icon → Browse backups
# Move file from Trash back to Desktop
mv ~/.Trash/filename.txt ~/Desktop/
🐧 Linux File Recovery Methods
Trash Folder (GUI):
Open Trash via file manager
Right-click file → "Restore"
Command Line with trash-cli:
Recover deleted file with
trash-list
andtrash-restore
extundelete for ext4 recovery:
Used on unmounted partitions only
# List all deleted files
trash-list
# Restore file
trash-restore
Enable backups on all systems — use File History (Windows), Time Machine (macOS), or rsync/Deja Dup (Linux).
Cloud storage like Google Drive or Dropbox offers easy recovery for synced files.
Windows: Try Recuva or Disk Drill
macOS: Use Disk Drill or EaseUS Data Recovery
Linux: Use extundelete, TestDisk, or PhotoRec for deep scans
Don’t wait too long — the sooner you act, the higher your chances of recovery. Always back up important files and think twice before emptying the Trash!