Mac OS X Trash Error

Discussion in 'macOS' started by macman0910, Aug 5, 2010.

  1. macman0910 macrumors newbie

    Joined:
    Jul 17, 2010
    #1
    Okay, I needed to empty the trash so I went onto the apple forums and it told me to type "sudo rm -rf ~/.Trash" in the Terminal but now files won't go to the trash. They're instantly deleted. How do I make the Trash work again?
     
  2. miles01110 macrumors Core

    miles01110

    Joined:
    Jul 24, 2006
    Location:
    The Ivory Tower (I'm not coming down)
    #2
    Sigh. Another example of why newbies shouldn't use Terminal.

    What it probably told you to do was type

    Code:
    sudo rm -rf ~/.Trash/*
    ...which is the same thing as right-clicking on the Trash icon and selecting "Empty Trash" . Instead, you deleted the actual Trash folder.
     
  3. Mal macrumors 603

    Mal

    Joined:
    Jan 6, 2002
    Location:
    Orlando
    #3
    To add to that, you may have some success recreating the folder, though I'm not 100% sure it will work.

    In the Terminal (and of course be very careful to exactly type this in, or just copy and paste):
    Code:
    sudo mkdir ~/.Trash
    That will create a new folder for the Trash, but I'm not 100% sure if the permissions will give you trouble.

    I would also recommend logging out and then back in once you do that.

    jW
     

Share This Page