Accidentally Deleted Desktop Folders

Discussion in 'iMac' started by robo44, Feb 11, 2015.

  1. robo44 macrumors member

    Joined:
    Feb 1, 2013
    #1
    Preview
    Hi all I was messing around with terminal earlier as I could not empty the trash. I don't know what I have done but all my desktop folders have disappeared. If I search the hard drive the folders are empty ie desktop documents etc. is there anything I can do to get them back ?
    Thanks in advance.
     
  2. driftless macrumors demi-god

    driftless

    Joined:
    Sep 2, 2011
    Location:
    Chicago-area
  3. redheeler macrumors 603

    redheeler

    Joined:
    Oct 17, 2014
    #3
    Yes, as already mentioned the only way to get them back is likely to restore from backup.

    Duplicate post in your other thread:

    That's why it's never a good idea to mess around in Terminal unless you know what you're doing. If you were using the rm command the files/folders could be permanently deleted.

    For future reference, to delete all files in the trash through Terminal, press Command-A while in the Trash folder and drag them over to Terminal after typing the rm -rf command.
     
  4. robo44 thread starter macrumors member

    Joined:
    Feb 1, 2013
    #4
    oh dear

    The command was

    $ cd ~/.Trash && rm -rf *

    But i must of done it wrong somehow :mad:
     
  5. blueroom macrumors 603

    blueroom

    Joined:
    Feb 15, 2009
    Location:
    Toronto, Canada
  6. robo44 thread starter macrumors member

    Joined:
    Feb 1, 2013
    #6
    No I never got round to setting it up but I will now.
     

Share This Page