Recover the lost/deleted data from computer, hard drive, flash drive, memory card, digital camera and more.
Retrieve Files from Mac Terminal – Best Methods You Should Know
If you just deleted some files from Trash on Mac, you can use Terminal to retrieve the permanently deleted files. Mac Terminal is an efficient method to recover files back with some command lines.
What can you do if you want to retrieve files deleted from Mac Terminal?
When you have a cleanup and remove all files with Terminal, is there a method to get the deleted files back? Here is the information you should know about.
1. How to Retrieve Files Deleted from Mac with Terminal
In order to restore files deleted from Mac Terminal, you should have a basic knowledge with the command lines, or else it will not yield a successful file recovery. Here is how to retrieve deleted files from Mac Trash via Mac Terminal.
Step 1Power on your Mac and click on the “Applications” folder to navigate to the Mac Terminal. Click on the “Utility” folder and double click the “Terminal” on Mac to launch the program.
Step 2After that you can enter the following command line cd.Trash. Then hit the Return key on Mac. Type Is command to list all files in the Trash folder you deleted.
Step 3If you can still remember the name of the file format, enter mv [file name]../. Replace the File name as the deleted file name. It is the method to retrieve files deleted from Mac Terminal.
Step 4Enter the Quit command to exit Terminal. Launch the “Finder” window and enter the name again to search for the deleted files from your Mac. You can save that to another location instead.
Note: Mac Terminal does not work if you use Option+Shift+Command+Delete keys. It is the permanently delete context menu option that you are not able to restore files deleted from Mac Terminal.
2. Best Method to Restore Files Deleted from Mac Terminal
How to retrieve files deleted with permanently deleted context menu or Mac Terminal? When you have a clean up with Terminal on Mac, you might remove some important files. Is there a versatile method to retrieve files deleted from Mac Terminal?
FoneLab Data Retriever is the ultimate solution if you remove the files from hard drive, flash drive, memory card, digital camera and more. Moreover, it supports most of the file formats on Mac, including photos, videos, documents, email, etc.
- Restore files deleted from Mac, hard drive, flash drive, memory card, etc.
- Provide both Quick Scan and Deep Scan mode to retrieve files with ease.
- Retrieve deleted files, lost partition, crashed hard drive and other scenarios.
- Keep the recovered data in the original status without storing or modifying.
FoneLab Data Retriever - recover the lost/deleted data from computer, hard drive, flash drive, memory card, digital camera and more.
- Recover photos, videos, documents and more data with ease.
- Preview data before recovery.
Step 1Download and install a data recovery on Mac. Launch the program on Mac and choose the Mac data recovery to scan the deleted files. If you need to recover data from removable drives, you should connect them to the Mac beforehand.
Step 2Choose the files you want to retrieve, including images, audios, videos, emails, documents and other files. When you choose all the file types, it will take a long period to scan. Click the Scan button to scan the files from SSD card to retrieve files.
Step 3If you need to retrieve files deleted from Mac Terminal, or with the permanently deleted context menu, it is recommended to use the Deep Scan mode instead. You can also use the filter option to search for desired file with Created Date, Modified Date and more other parameters.
Step 4Once you locate the desired file within the program, you can click the Recover button to restore files deleted from Mac Terminal to your Mac. Moreover, you can also preview the files before restoring them back within one click.
When you deleted some files from Trash on Mac, you can restore the files back from Mac Terminal. But if you remove the files with permanently deleted context menu or Mac Terminal, FoneLab Data Retriever should be the ultimate solution you have to take into consideration, especially for the Deep Scan mode.
If you have any other query about how to retrieve files deleted from Mac Terminal, you can share more information in the comment.