Results 1 to 5 of 5
  1. #1


    Member Since
    Mar 09, 2011
    Posts
    7
    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

    hw96Lgb's Avatar
    Member Since
    Oct 04, 2010
    Posts
    296
    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

    EvenStranger's Avatar
    Member Since
    Dec 09, 2010
    Location
    Virginia
    Posts
    844
    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.

  4. #4


    Member Since
    Mar 09, 2011
    Posts
    7
    ok ill give that a go. Thats guys

  5. #5

    McYukon's Avatar
    Member Since
    May 14, 2009
    Location
    Near Whitehorse, Yukon
    Posts
    2,052
    Specs:
    2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9
    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 OS X - Operating System
    Replies: 2
    Last Post: 10-18-2013, 02:47 PM
  2. Terminal 'ls' Command Help
    By xxSwagPanda in forum OS X - Operating System
    Replies: 1
    Last Post: 03-27-2013, 12:18 AM
  3. Please help me with this Terminal command
    By nowakchr in forum OS X - Operating System
    Replies: 2
    Last Post: 12-12-2010, 11:39 AM
  4. terminal command help
    By ytbryan in forum OS X - Development and Darwin
    Replies: 2
    Last Post: 09-18-2009, 06:22 PM
  5. cd Terminal Command
    By Mac_Daddy in forum OS X - 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
  •