Find the answer to your Linux question:
Results 1 to 4 of 4
Hi All, I can't empty my trash (even in termain as sudo user), it's very strange. As regular user says permission denied. In terminal as sudo no error given but ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru jmadero's Avatar
    Join Date
    Jul 2007
    Location
    California
    Posts
    1,991

    [SOLVED] trash (can't empty)


    Hi All,

    I can't empty my trash (even in termain as sudo user), it's very strange. As regular user says permission denied. In terminal as sudo no error given but folder remains in trash. Any suggestions? Thanks!

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Execute this
    Code:
    cd .Trash
    ls -l
    Post output here.

    Have you tried this?
    Code:
    cd .Trash 
    sudo rm -rf *
    Make sure to execute cd .Trash command before executing rm -rf command.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Jun 2008
    Location
    Memphis, TN
    Posts
    65
    You sure it's not
    cd /
    rm -rf *
    ???
    Lol. Just kidding. Original poster never do this unless you want to reload your system. I did it once for fun though.

  4. #4
    Linux Guru jmadero's Avatar
    Join Date
    Jul 2007
    Location
    California
    Posts
    1,991
    solved but not this way. doing sudo rm -rf * in .Trash didn't work. Instead I had to do this:

    cd .local/share/Trash

    sudo rm -rf /*


    Thanks for the help...I have no idea why those files got stuck in there.

Posting Permissions

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