Restore files from the Mac Recycle Bin
If you accidentally delete files on your Mac and they end up in the Recycle Bin, there are several ways to recover those files:
1. Open the Trash: On the desktop, find the Trash icon (usually located to the right of the Dock). Double-click it to open the Shopping Cart window.
2. Return one or several files: If you want to return only certain files from the trash, select the desired item(s), right-click and select "Return".
3. Return all items: If you want to return all deleted objects from the Recycle Bin in their entirety, simply drag the contents of the Recycle Bin back to your desktop or another folder.
4. Using the Terminal command line:
– Start Terminal through Applications -> Utilities.
– Enter the following command line to move all items from TrashBin back to the user's home directory:
`mv ~/.Trash/* ~`
5. Use Time Machine Backup (if available): If you have previously created a backup copy of the system file using Time Machine, you can use this function to restore deleted files. Open the Finder and navigate to the location of the file or folder you'd like to restore. Then right-click on the selected item and select "Return" from the context menu.
If you do not have a backup copy or if the files are not found after applying these methods, there is also third-party software (for example, Disk Drill) that can be used to scan your disk for deleted data and the possibility of restoring it.