New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Terminal command gone wrong


Post Reply New Thread Subscribe

 
Thread Tools
Rhys144

 
Member Since: Mar 09, 2011
Posts: 7
Rhys144 is on a distinguished road

Rhys144 is offline
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
QUOTE Thanks
hw96Lgb

 
hw96Lgb's Avatar
 
Member Since: Oct 04, 2010
Posts: 296
hw96Lgb will become famous soon enough

hw96Lgb is offline
I hope you have a backup. What files were gone exactly? The whole user folder? The documents only? Something else?

The Earth is the cradle of the mind, but one cannot live in a cradle forever.
-Konstantin Tsiolkovsky, Father of Modern Rocketry
QUOTE Thanks
EvenStranger

 
EvenStranger's Avatar
 
Member Since: Dec 09, 2010
Location: Virginia
Posts: 845
EvenStranger is just really niceEvenStranger is just really niceEvenStranger is just really niceEvenStranger is just really niceEvenStranger is just really nice
Mac Specs: Currently 13" Late 2010 MBA, 4GB/128GB; Early 2011 13" MBP, dual core i7 2.7ghz, 4gb ram, 500gb hd

EvenStranger is offline
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.
QUOTE Thanks
Rhys144

 
Member Since: Mar 09, 2011
Posts: 7
Rhys144 is on a distinguished road

Rhys144 is offline
ok ill give that a go. Thats guys
QUOTE Thanks
McYukon

 
McYukon's Avatar
 
Member Since: May 14, 2009
Location: Near Whitehorse, Yukon
Posts: 2,053
McYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to beholdMcYukon is a splendid one to behold
Mac Specs: 2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9

McYukon is offline
Quote:
Originally Posted by Virgeist View Post
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

Use the reputation system if a post helps you!
Mac Forums IRC Channel - Help build it by hanging out with us
The next sentence is true. The previous sentence is false.
QUOTE Thanks

Post Reply New Thread Subscribe


« Applescript Q: Can you use applescipt to give mounted network volumes unique names | Why is My Mac So Slow and Sad? :( »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Terminal Wrong Date jfordtmc OS X - Operating System 0 09-28-2010 09:48 AM
In Terminal, can't type l/ Sandwichman OS X - Development and Darwin 5 10-18-2009 10:23 PM
Aqua Connect Terminal Server Josh Trenor OS X - Apps and Games 2 03-12-2009 06:44 PM
C++ in terminal frike OS X - Development and Darwin 2 04-04-2008 10:52 AM
looking for a terminal emulator and command shell in Mac OSX CandiMarie OS X - Operating System 9 03-05-2004 03:53 PM

All times are GMT -4. The time now is 05:16 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?