Retrieve Files from Mac Terminal – Best Methods You Should Know

Somei Liam

April 30, 2019 09:00 / Posted by Somei Liam

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.

retrieve files deleted from mac terminal

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.

Power 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.

After 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.

If 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.

Enter 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.

retrieve files terminal

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.

  1. Restore files deleted from Mac, hard drive, flash drive, memory card, etc.
  2. Provide both Quick Scan and Deep Scan mode to retrieve files with ease.
  3. Retrieve deleted files, lost partition, crashed hard drive and other scenarios.
  4. Keep the recovered data in the original status without storing or modifying.

Download 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.

launch mac files recovery software

Choose 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.

choose file type

If 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.

restore deep scan

Once 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.

Conclusion

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.

FoneLab > Resource > What Should You Do to Retrieve Files Deleted from Mac Terminal

Copyright © 2019 Aiseesoft Studio. All rights reserved.