If you are familiar with command lines, you may prefer to perform tasks with Mac Terminal, because it allows you to make changes on your Mac quickly even once for all. One of Terminal’s useful features is to recover deleted files and here we will focus on the step-to-step guide to recover files using Mac Terminal.
Also, we have some Terminal basics for you, to help you have a better understanding about Terminal. In the latter part of this post, we offer solutions for data loss scenarios when Terminal not working, for restoring files deleted with Terminal rm command.
Terminal is the macOS command line application, with a collection of command shortcuts, you can perform different tasks on your Mac quickly and efficiently without repeating certain actions manually.
You can utilize Mac Terminal to open an application, open a file, copy files, download files, change location, change file type, delete files, recover files, etc.
Speaking of Terminal Recovery, it only applies to recovering files moved to Mac Trash bin, and you cannot recover deleted files using Mac Terminal in following cases:
If the deleted files are just moved to your Trash bin, instead of being permanently deleted, you can restore using Mac Terminal, to put the deleted file in Trash folder back to your home folder. Here we will offer the step-to-step guide to recover one or multiple files using Terminal command line.
But Mac Terminal doesn’t work sometimes, especially when the file name of a deleted file contains irregular symbols or hyphens. In this case, there are 2 options to recover deleted files from Trash bin if Terminal not working.
If you have enabled Time Machine to back up your files on a regular schedule, you can utilize its backup to restore deleted files too.
As we mentioned at the beginning of this post, Terminal only works on recovering deleted files in Trash bin, it doesn’t work when a file is permanently deleted, no matter it is deleted by “deleted immediately” “Command+Option+Backspace” “Empty Trash” or “rm command line in Terminal”. But no worries, here we will offer the easiest way to recover deleted files deleted with Terminal rm command line on Mac, that is, using Cisdem Data Recovery for Mac.
Cisdem Data Recovery is a Mac data recovery program to restore deleted, lost and formatted files from both internal and external drives, for example, it can recover files from Mac internal hard drive, external hard disk, USB, SD Card, media players, etc. It can read and recover 200+ types of files, including videos, audios, photos, documents, archives and others. You will be given 5 recovery solutions to get back your deleted files back: Basic, Advanced, Formatted Drive, Trash and External Devices.
Cisdem Data Recovery Main Features
In my test, though not all deleted files can be recovered by using Mac Terminal, it does work to put back the files I moved to Trash to home folder. But due to its limitation to recover files moved to Trash bin only, we highly recommend you using Cisdem Data Recovery to recover any deleted files, no matter it is temporarily deleted, or permanently deleted.
Connie has been writing for Mac productivity and utility apps since 2009. Each review and solution is based on her practical tests, she is aways energetic and trustworthy in this field.