LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   I can't empty trashcan. (https://www.linuxquestions.org/questions/slackware-14/i-cant-empty-trashcan-671632/)

glore2002 09-22-2008 02:14 PM

I can't empty trashcan.
 
When trying to empty trashcan, it shows the following message:

Code:

The file or folder /home/docentes/.local/share/Trash/files/$┐êå┬ï0.!`` does not exist.
The last part $a...has strange characters squares, exclamation marks, etc.

Today, one of my students came to the lab with a pendrive full of these files. She uses win. We tried to delete those files from Lin but we couldn't. Now, it seems that one of those files resides in my trashcan and can't be deleted.

Any help will be very welcome. Thanks,
Glore2002.-

keefaz 09-22-2008 02:24 PM

did your try rm with -rf options (r=recursive, f=force) ?
rm -rf /home/docentes/.local/share/Trash/files/*

glore2002 09-22-2008 02:31 PM

Quote:

Originally Posted by keefaz (Post 3288497)
did your try rm with -rf options (r=recursive, f=force) ?
rm -rf /home/docentes/.local/share/Trash/files/*

Thanks keefaz for your help.

Yes, I've tried rm -rf as user and as root and the same message shows up when trying to empty trashcan.

Glore2002.-

keefaz 09-22-2008 02:42 PM

Maybe try do the same with .local/share/Trash/info/
rm -rf /home/docentes/.local/share/Trash/info/*

bgeddy 09-22-2008 03:22 PM

Don't know if this is any use but I found a reference to deleting files with odd characters in there names here : http://www.cyberciti.biz/tips/delete...de-number.html

Basically it involves getting the inode number with ls -i then applying that number to the find command as in :
Code:

find . -inum [inode-number] -exec rm -i {} \;
replacing the inode number with the ones discovered. Probably a bit long winded if there are a lot of files - maybe you could script it if it's any use. Hopefully some form of tab completion, escaping or rm -rf'ing will work for you.

glore2002 09-23-2008 08:51 AM

Quote:

Originally Posted by keefaz (Post 3288513)
Maybe try do the same with .local/share/Trash/info/
rm -rf /home/docentes/.local/share/Trash/info/*

Yes!!!
It worked. Thanks keefaz!


deleting .../info/* did the change.

Glore2002.-

muskrat 09-23-2008 12:24 PM

Interesting!

I have had this ame thing happen in my cyber cafe.

I allways asumed it was some sort of a windows virus that corrupted it.


All times are GMT -5. The time now is 12:40 AM.