Subscribe to How-To Geek

Recommended: Click Here to Run a Free Scan for Common PC Errors   [Sponsored Link]

How To Empty the Ubuntu Gnome Trash from the Command Line

Ubuntu has a trash can/recycle bin feature similar to windows. The difference with Ubuntu is that you can empty the trash from the command line.

Here's the full trash icon, in the lower right hand corner:

Just open a terminal and type in the following command:

rm -rf ~/.Trash/*

Trash has been taken out!

The Geek is the founder of How-To Geek and a geek enthusiast. When he's not coming up with great how-to articles, he's probably writing at his personal blog. This article was written on 12/13/06 and tagged with: Ubuntu, Ubuntu Tips & Tweaks

Comments (3)

  1. Sayne

    Thank you for this. There was some old src files in my bin that I didn't have permission to delete (I don't know how), and with this command all I had to do was add a sudo in front and it worked brilliantly! Cheers!

  2. mozey

    heheh, ofcourse!, .Trash!!!!!!!, where else would it be!? i was looking for that damn directory for a long time!.

  3. Tom

    I can't get this to work in 7.10. Has the command changed?


Leave a Comment




Leave your friendly comment here. If you have a computer help question, leave it on the forums instead.

Note: Your comment may not show up immediately on the site.

Copyright © 2006-2008 HowToGeek.com. All Rights Reserved.