What Is Mac Terminal?
When started, it provides a line interface to control the base of UNIX-based operating systems.
Every Terminal window corresponds to an individual shell process.

Within each window, a prompt awaits your commands.
For more details about Mac Terminal, kindly turn to this page:Terminal (macOS).
How to Recover Deleted Files With Mac Terminal
Recovering deleted files using Mac Terminal is relatively straightforward.
![]()
Notes:
Way 1.
In this situation, you’re able to venture to access Trash with Terminal.
Step 1.Open Mac Terminal.
![]()
On your desktop, double-click theFindericon to open it.
In the command line window, typeopen .Trashand hitReturn.
Now you have come to the interface of Trash.

Find the desired file according to the file name, modification date, etc.
Then right-smack the wanted item to selectPut Back.
After that, the target file should be restored to its original location.

Click to Tweet
Way 2.
In the Terminal window, typecd .Trashand pressReturn.
This command will list all deleted files located in the Trash folder and display the file names.

Repeat the steps to recover all wanted files that are listed.
Is there any other way to recover permanently deleted files Mac?
Fortunately, the answer is positive.

Listed below are the alternative ways to restore Mac deleted files without using Terminal.
For detailed information about Time Machine backup, like check:Back up your Mac with Time Machine.
Step 2: Select what types of files you want to recover.

After that, click theNextbutton to continue.
Select all needed files and clickRecoverto choose an appropriate destination to store selected data.
Just jot down the activation key to activate it.
![]()
If you do not have an activation key, click theGet it Nowbutton to get one.
With the help of Stellar Data Recovery for Mac, I can recover deleted files Mac without Time Machine.
It is worth trying.Click to Tweet
How to recover data from a dead MacBook?
It might be a difficult task but you might handle it easily with the help of this post.
Nonetheless, this approach comes with its own drawbacks.
Among the most prominent ones are substantial financial expenses and the potential vulnerability to information leakage.
2 Useful Tips for Mac Terminal Deleted Files Recovery
1: Back up data with Time Machine.
As mentioned earlier, Time Machine can help to back up and restore Mac data.
2: Do not use the drive once data is lost.
Once your data are lost, you should stop writing new data on the drive containing lost files.
Bottom Line
Now, its your turn to recover deleted files!
Choose the right data recovery solution to get lost data back.
Recover Deleted Files With Mac Terminal FAQ
Yes.
you’ve got the option to recover them from the Trash folder or using the Mac Terminal tool.
If you delete files by mistake in Mac, you could find these deleted files in Trash.