LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-20-2009, 04:38 AM   #1
kldegraaf
LQ Newbie
 
Registered: Nov 2009
Posts: 6

Rep: Reputation: 0
Trahs can does not empty trash of HD2


Hi,

I have CentOS 5 running. When I empty the trash can, then the trash of HD2 is not deleted. It is also not visible in the trash can.

Looks like the trash(deleted files) of HD2 are not linked to the trash can on my desktop.

How can I fix it that when I delete the trash can that the trash of HD2 also gets deleted.

Thanks in advance.
 
Old 11-21-2009, 11:21 AM   #2
tom4everitt
Member
 
Registered: Jan 2009
Location: Stockholm
Distribution: Fedora, Ubuntu, Mac OS X
Posts: 78

Rep: Reputation: 23
Since the trash can is actually nothing but a folder called .Trash stored on each hard drive, the easiest solution is of course to simply run:

rm -rf /media/HD2/.Trash

or something similar.

I suppose that's exactly what the 'empty trash' button does. I have no clue about how to link this command to the GUI button though. If you just wanna empty trash, just typing the command in a terminal will suffice of course.
 
Old 11-23-2009, 03:33 AM   #3
kldegraaf
LQ Newbie
 
Registered: Nov 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Hi Tom,

Thanks for your reaction.
But what I want is that on the desktop I right click on the trash can, choose for empty trash, and that then the trash of all hd's is deleted.

Thanks in advance.
 
Old 11-24-2009, 04:48 AM   #4
tom4everitt
Member
 
Registered: Jan 2009
Location: Stockholm
Distribution: Fedora, Ubuntu, Mac OS X
Posts: 78

Rep: Reputation: 23
I understand, I've got no idea about how to do that though. I know that trash cans are somewhat user specific though, perhaps a further investigation in what the .Trash (or .Trashes sometimes) look like, what permissions and owner they've got etc might yield some insight? Compare the working ones with the broken ones. Do you know how to do this?

Another option is to add commands like I suggested in my previous post into a script that you put on the desktop, so all you'll need to do is double clicking on that icon to empty all the trashes. That I can tell you how to do (its really easy).


Someone else got an idea?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot empty trash Lawrence ynt Linux - Newbie 3 09-28-2009 08:00 AM
How to open the trash folder and empty the trash in command line cmx08 Linux - Newbie 5 08-29-2008 10:15 AM
Can't empty the trash. MooseMagnet Linux - Newbie 29 12-21-2007 10:49 AM
Move to trash works beautifully, but empty trash .. different story. kd5eax Mandriva 2 12-04-2007 03:52 PM
trying to empty trash jasonmcneil0 Linux - Software 4 10-26-2003 04:03 AM


All times are GMT -5. The time now is 09:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration