Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

unable to delete a folder

Discussion in 'General Discussion' started by djoverho, May 21, 2003.

  1. djoverho

    djoverho Active Member

    Joined:
    Feb 19, 2002
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    306
    Location:
    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:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. AP

    AP Well-Known Member

    Joined:
    Nov 5, 2002
    Messages:
    85
    Likes Received:
    0
    Trophy Points:
    156
    did you use rm -rf foldername command?

    cPanel.net Support Ticket Number:
     
  3. djoverho

    djoverho Active Member

    Joined:
    Feb 19, 2002
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    306
    Location:
    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:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. rbmatt

    rbmatt Well-Known Member

    Joined:
    Oct 21, 2002
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    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:
     
  5. djoverho

    djoverho Active Member

    Joined:
    Feb 19, 2002
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    306
    Location:
    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:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Nico

    Nico Well-Known Member

    Joined:
    Dec 5, 2001
    Messages:
    233
    Likes Received:
    0
    Trophy Points:
    316
    Location:
    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:
     
  7. rbmatt

    rbmatt Well-Known Member

    Joined:
    Oct 21, 2002
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    166
    Try:
    rm -fr foldername\\r
    rm -fr 'foldername\\r'

    cPanel.net Support Ticket Number:
     
  8. djoverho

    djoverho Active Member

    Joined:
    Feb 19, 2002
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    306
    Location:
    WV
    Nico....that worked :eek:) Thanks a million, I'll have to remember that one. Thanks again.

    cPanel.net Support Ticket Number:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice