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


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!
heheh, ofcourse!, .Trash!!!!!!!, where else would it be!? i was looking for that damn directory for a long time!.
I can't get this to work in 7.10. Has the command changed?