MacOS – Recover text file deleted from trash on Mac OS X

data-recoverymacosterminal

how can I use the grep command in termainal to undelete my text file?

Best Answer

First, stop working with the disk containing your textfile. Boot from another system.

Then, You can try: