Monday, October 12th, 2009

Force empty your trash from the command line

April 27, 2007 by admin  
Filed under How To

trash.png

Who doesn’t love the command line? The following command will show you how to force empty your trash using the command line in Ubuntu or Debian:


sudo rm -fr /home/USERNAME/.Trash

Replace the “USERNAME” section with your own username. You may need to refresh your GNOME or KDE session to see the results. You can quickly refresh your session by typing CONTROL+ALT+BACKSPACE. This command line function is particularly useful if you’ve got a stubborn file or script that will not get out of your trash. Thanks, Arsgeek.

  • StumbleUpon
  • Digg
  • Facebook
  • Mixx
  • Google
  • TwitThis
  • Reddit
  • Yahoo! Buzz
  • Slashdot

Comments

5 Responses to “Force empty your trash from the command line”
  1. drew says:

    THANKS! just freed up over 22GB

  2. georgi says:

    Hi !
    Sorry.
    To empty the trash if it is impossibility
    sudo rm -rf ~/.local/share/Trash/files/*
    rm -rf $HOME/.Trash
    sudo rm -rf $HOME/.Trash
    If you cannot empty your trash, then use this command:
    sudo rm -r ~/.local/share/Trash/files/
    Who doesn’t love the command line? The following command will show you how to force empty your trash using the command line in Ubuntu or Debian:

    sudo rm -fr /home/georgi/.Trash
    All this command do not work- I can not empty trash.
    Dalakow

  3. Shai says:

    The following works on Ubuntu Hardy Heron 8.04
    1. open terminal
    2. type gksudo dbus-launch nautilus
    3. hit enter
    4. navigate to /home/USERNAME/.local/share/Trash/files
    5. Delete whatever you want

  4. Darrell says:

    Thank you Shai, that did the trick.

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!


About Us | Advertise with us | Blog for EveryJoe | Privacy Policy | Terms of Use
Get This Theme | Sitemap


All content is Copyright © 2005-2009 b5media. All rights reserved.