LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-22-2008, 02:14 PM   #1
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Lubuntu 17.10 x64
Posts: 510

Rep: Reputation: 33
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.-

Last edited by glore2002; 09-22-2008 at 02:19 PM.
 
Old 09-22-2008, 02:24 PM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
did your try rm with -rf options (r=recursive, f=force) ?
rm -rf /home/docentes/.local/share/Trash/files/*
 
Old 09-22-2008, 02:31 PM   #3
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Lubuntu 17.10 x64
Posts: 510

Original Poster
Rep: Reputation: 33
Quote:
Originally Posted by keefaz View Post
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.-
 
Old 09-22-2008, 02:42 PM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Maybe try do the same with .local/share/Trash/info/
rm -rf /home/docentes/.local/share/Trash/info/*
 
Old 09-22-2008, 03:22 PM   #5
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
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.
 
Old 09-23-2008, 08:51 AM   #6
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Lubuntu 17.10 x64
Posts: 510

Original Poster
Rep: Reputation: 33
Thumbs up

Quote:
Originally Posted by keefaz View Post
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.-
 
Old 09-23-2008, 12:24 PM   #7
muskrat
Member
 
Registered: Feb 2005
Location: Gulf-Coast TX-MX
Distribution: ArchLinux / Slackware 12.1
Posts: 39

Rep: Reputation: 15
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.
 
  


Reply



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
'Uninstall' the Trashcan Jydecllq0517 Linux - Desktop 6 05-22-2007 06:01 AM
Where is the trashcan? philips217 Linux - Newbie 12 11-29-2006 11:35 AM
Trashcan io problem in sarge whanana Debian 1 11-08-2005 12:48 AM
delete trashcan? corbintechboy Linux - General 1 10-29-2004 03:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:54 AM.

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
Open Source Consulting | Domain Registration