Terminal command gone wrong

Joined
Mar 9, 2011
Messages
7
Reaction score
1
Points
3
I typed in this terminal command (rm -rf ~/.Trash/*) to force clear my trash but now all my documents are gone!!!! does anyone no away to reverse this command?
someone please help me i really need my documents
 
Joined
Oct 4, 2010
Messages
296
Reaction score
5
Points
18
I hope you have a backup. What files were gone exactly? The whole user folder? The documents only? Something else?
 
Joined
Dec 9, 2010
Messages
844
Reaction score
49
Points
28
Location
Virginia
Your Mac's Specs
Currently 13" Late 2010 MBA, 4GB/128GB; Early 2011 13" MBP, dual core i7 2.7ghz, 4gb ram, 500gb hd
One of the benefits and hazards of using terminal is that changes are immediate and irreversible. There's a very small window following a file deletion where that file might be recoverable. However, it requires stopping what you're doing immediately, powering down the system, and avoiding any more changes to the hard drive that might overwrite the space where that file was located.

DataRescue is a $99 app that can assist in recovering lost files. It has a free demo, where it will show what it might be able to recover. At that point, you can decide whether or not the $99 is worth it, pay the fee, enter the code and recover your data. Unfortunately, I have to agree with Virgeist - I hope there was a backup somewhere along the line.
 
Joined
May 14, 2009
Messages
2,052
Reaction score
136
Points
63
Location
Near Whitehorse, Yukon
Your Mac's Specs
2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9
I hope you have a backup. What files were gone exactly? The whole user folder? The documents only? Something else?

If he had one misplaced space in that command no telling what is gone.
For example (rm -rf ~/.Trash/*) with a double space after the -rf, it will start deleting the whole HDs files I'm told.
And I'm not about to test it :p
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top