Please visit the new Mac-Forums Facebook page:

Results 1 to 5 of 5
  1. #1
    Terminal command gone wrong
    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

  2. #2
    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

  3. #3
    Terminal command gone wrong
    EvenStranger's Avatar
    Member Since
    Dec 09, 2010
    Your Mac's Specs
    Currently 13" Late 2010 MBA, 4GB/128GB; Early 2011 13" MBP, dual core i7 2.7ghz, 4gb ram, 500gb hd
    Rep Power
    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.

  4. #4
    ok ill give that a go. Thats guys

  5. #5
    Terminal command gone wrong
    McYukon's Avatar
    Member Since
    May 14, 2009
    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
    Rep Power
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Terminal command help.
    By ladylisak in forum macOS - Operating System
    Replies: 2
    Last Post: 10-18-2013, 01:47 PM
  2. Terminal 'ls' Command Help
    By xxSwagPanda in forum macOS - Operating System
    Replies: 1
    Last Post: 03-26-2013, 11:18 PM
  3. Please help me with this Terminal command
    By nowakchr in forum macOS - Operating System
    Replies: 2
    Last Post: 12-12-2010, 11:39 AM
  4. terminal command help
    By ytbryan in forum macOS - Development and Darwin
    Replies: 2
    Last Post: 09-18-2009, 05:22 PM
  5. cd Terminal Command
    By Mac_Daddy in forum macOS - Operating System
    Replies: 4
    Last Post: 11-19-2007, 10:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts