LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't Delete KWrite files (https://www.linuxquestions.org/questions/linux-newbie-8/cant-delete-kwrite-files-4175465045/)

r00ster 06-06-2013 07:01 PM

Can't Delete KWrite files
 
I have 2 obsolete KWrite files that seem to have taken permanent residence and just won't leave. Behold:
Code:

root@royrogers:/home/rooster/Desktop/HOME/Desktop
<SNIP>
-rw-r--r--  1 rooster rooster    84 Jun  6 16:22 revised sources list for wheezy
<SNIP>
-rw-r--r--  1 rooster rooster    76 Jun  6 16:22 revised sources list for wheezy~

I've tried:
Code:

root@royrogers:/home/rooster/Desktop/HOME/Desktop# rm -f revised sources list for wheezy
root@royrogers:/home/rooster/Desktop/HOME/Desktop# rm -f revised sources list for wheezy~

No Joy.

Using the 'Highlight Icon' + 'Delete' technique makes them disappear ... until the next restart. Then they are back in residence; '/home/rooster/Desktop/HOME/Desktop'.

I tried moving it/them to the Trash file and deleting them there. No Joy. They reappear in '/home/rooster/Desktop/HOME/Desktop' with an error message that it/they can't be read.

Right clicking on the open file doesn't give the expected menu; i.e. no 'Properties' entry.

I would appreciate some insight on how to send them packing.

rooster

John VV 06-06-2013 07:18 PM

Quote:

/home/rooster/Desktop/HOME/Desktop
That is one odd location

ON the Desktop manager's "Desktop" you have a folder called " HOME " and in that folder have a second "Desktop" folder ????
odd ?

is that all capital HOME folder a symbolic link back to
/home/rooster/Desktop
as in, are these two folders THE SAME folder
-----------
/home/rooster/Desktop/HOME/Desktop
/home/rooster/Desktop
-------------
are those the same exact folder

yancek 06-06-2013 08:52 PM

Strange directory structure ? If the file name has spaces in it, you need to put it in quotes:

Code:

rm -f "revised sources list for wheezy"
although I don't know that will resolve your problem. Answers to the questons in post 2 might help.

r00ster 06-08-2013 07:51 PM

Quote:

Originally Posted by John VV (Post 4966930)
That is one odd location

ON the Desktop manager's "Desktop" you have a folder called " HOME " and in that folder have a second "Desktop" folder ????
odd ?

is that all capital HOME folder a symbolic link back to
/home/rooster/Desktop
as in, are these two folders THE SAME folder
-----------
/home/rooster/Desktop/HOME/Desktop
/home/rooster/Desktop
-------------
are those the same exact folder

I created a bit of a mess way back when I upgraded from Lenny to Squeeze... tried to merge 'home' directories... and like that. Sym Link: I think the answer is yes.
Code:

lrwxrwxrwx  1 rooster rooster    14 Jul 24  2012 HOME -> /home/rooster/
The thing of it is, is: after doing the 'rm' thing for the umpteenth time, the files no longer appear doing
Code:

root@royrogers:/home/rooster/Desktop# ls -al
; however, at startup, I get a message saying the file can't be read and the kwrite file does appear in my Desktop Panel. If I click on it, there it is, big as life. It's like it doesn't exist, but there it is!
Quote:

/home/rooster/Desktop/revised sources list for wheezy could not be loaded, as it was not possible to read from it. Check if you have read access to this file.
I would check, but I can't pull up the 'Properties' option when I R-Click on the file.
The best I can do is "Save As", put it back on Desktop from whence I know not, and then delete it. It'll show up again on restart.

David the H. 06-09-2013 08:24 AM

It could be a filesystem error of some kind. Try fsck-ing it.

What output do you get with file and stat?


All times are GMT -5. The time now is 08:51 AM.