Restoring Trash Confirmation

Discussion in 'macOS' started by Eidorian, Dec 20, 2005.

  1. Eidorian macrumors Penryn

    Eidorian

    Joined:
    Mar 23, 2005
    Location:
    Indianapolis
    #1
    I was tinkering with Termanal and ran the following command.

    rm -rf ~/.Trash

    Now whenever I want to put something in my Trash it won't stay in the trash. I'll get a prompt that it will just be deleted immediately. How can I restore my old trash behavior? Yeah, embarrassing.
     
  2. jane doe macrumors 6502

    Joined:
    Feb 18, 2004
    #2

    OK, so you have more playing in the terminal do to:

    Type:

    mkdir .Trash

    Restart and your done.
     
  3. Eidorian thread starter macrumors Penryn

    Eidorian

    Joined:
    Mar 23, 2005
    Location:
    Indianapolis
    #3
    I think I get what I did now. Thanks :D
     
  4. grapes911 Moderator emeritus

    grapes911

    Joined:
    Jul 28, 2003
    Location:
    Citizens Bank Park
    #4
    Make sure you do that from your home directory. To make it easier, type:
    mkdir ~/.Trash


    Next time you want to remove things from the trash via terminal, type:
    rm -rf ~/.Trash/*

    This will remove everything from inside the .Trash folder, rather than the .Trash folder itself.
     
  5. Eidorian thread starter macrumors Penryn

    Eidorian

    Joined:
    Mar 23, 2005
    Location:
    Indianapolis
    #5
    Yeah, I forgot the asterisks.
     
  6. grapes911 Moderator emeritus

    grapes911

    Joined:
    Jul 28, 2003
    Location:
    Citizens Bank Park
    #6
    The terminal is a pretty powerful tool. You can do most things via terminal faster and more efficient than by any other method. But that power can really screw you over. I love the terminal and encourage everyone to use it, but you have to remember to be careful. :cool:
     
  7. Eidorian thread starter macrumors Penryn

    Eidorian

    Joined:
    Mar 23, 2005
    Location:
    Indianapolis
    #7
    We run Redhat at my other job on over servers. It'd be nice to learn more UNIX commands so I tinker from time to time on my iMac. This is the first time something THAT bad has happened though. Normally it's SSH, copying, and finding applications.
     

Share This Page