LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 06-06-2013, 07:01 PM   #1
r00ster
Member
 
Registered: May 2007
Location: boundary beach, bc
Distribution: 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u3 i686 GNU/Linux
Posts: 224

Rep: Reputation: 15
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
 
Old 06-06-2013, 07:18 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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

Last edited by John VV; 06-06-2013 at 07:20 PM.
 
Old 06-06-2013, 08:52 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
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.
 
Old 06-08-2013, 07:51 PM   #4
r00ster
Member
 
Registered: May 2007
Location: boundary beach, bc
Distribution: 3.2.0-4-686-pae #1 SMP Debian 3.2.60-1+deb7u3 i686 GNU/Linux
Posts: 224

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by John VV View Post
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.

Last edited by r00ster; 06-08-2013 at 10:29 PM.
 
Old 06-09-2013, 08:24 AM   #5
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
It could be a filesystem error of some kind. Try fsck-ing it.

What output do you get with file and stat?
 
  


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
Can I delete files in /mnt/tmp? and Files in the trash can will not delete? M$ISBS Slackware 15 10-02-2009 11:56 PM
kwrite - how to delete spaces adrian2009 Linux - Software 1 06-13-2009 11:35 AM
KWrite Backup Files (~) Kamex Linux - Software 2 07-26-2006 03:55 PM
Many files to edit with Kwrite, how to simplify? mifan Linux - Software 7 08-31-2005 08:29 AM
.desktop files open with kwrite palmem Linux - Software 2 11-01-2004 02:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:16 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
Open Source Consulting | Domain Registration