djoverho

Active Member
Feb 19, 2002
34
0
306
WV
Hi, one of our clients has a couple folders on his site that he is unable to delete. I logged in as root and went to his home directory and can see the files, the 2 he wants deleted look different than the others in that they look like this

foldername\r/

the rest of them just look like this:

foldername/

When I try to delete them I get:

550 No Such File or Directory

any ideas?

Thanks in advance.

cPanel.net Support Ticket Number:

cPanel.net Support Ticket Number:
 

AP

Well-Known Member
Nov 5, 2002
85
0
156
did you use rm -rf foldername command?

cPanel.net Support Ticket Number:
 

djoverho

Active Member
Feb 19, 2002
34
0
306
WV
yeah, I also tried renaming it, changing the attributes...nothing seems to work...any idea what the \r/ means? thanks

cPanel.net Support Ticket Number:
 

rbmatt

Well-Known Member
Oct 21, 2002
212
0
166
Try:
rm -fr 'foldername\r'
The \r is like a \n
I think when you use the rm command without quotes, it actually translates the \r
I'm guessing this directory was made with a php/cgi script?

cPanel.net Support Ticket Number:
 

djoverho

Active Member
Feb 19, 2002
34
0
306
WV
that didnt seem to work either...didnt get any errors but its still showing when I do ls I don't know what they were created with...any other ideas?

cPanel.net Support Ticket Number:
 

Nico

Well-Known Member
Dec 5, 2001
233
0
316
Edmond, OK
I have had the same problem in the past. This is how I resolved it:

Say the folder name is: test\1/

I ran this: rm -rf tes*

As long as there or no other files that start with 'test' you should be OK.

cPanel.net Support Ticket Number:
 

rbmatt

Well-Known Member
Oct 21, 2002
212
0
166
Try:
rm -fr foldername\\r
rm -fr 'foldername\\r'

cPanel.net Support Ticket Number:
 

djoverho

Active Member
Feb 19, 2002
34
0
306
WV
Nico....that worked :eek:) Thanks a million, I'll have to remember that one. Thanks again.

cPanel.net Support Ticket Number: