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!

How can I remove a directory named -xfs ?

Discussion in 'General Discussion' started by BianchiDude, Jul 15, 2005.

  1. BianchiDude

    BianchiDude Well-Known Member
    PartnerNOC

    Joined:
    Jul 2, 2005
    Messages:
    619
    Likes Received:
    0
    Trophy Points:
    166
    drwxr-xr-x 2 nobody nobody 4096 Feb 17 13:41 -xfs/
    root@104 [/var/tmp]# cd -xfs/
    bash: cd: illegal option: -x
    cd: usage: cd [-PL] [dir]
    root@104 [/var/tmp]# rm -rf \-xfs/
    rm: invalid option -- x
    Try `rm --help' for more information.
    root@104 [/var/tmp]# rm -rf '-xfs'
    rm: invalid option -- x
    Try `rm --help' for more information.
    root@104 [/var/tmp]#
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Two easy ways:

    1. Use SFTP

    2. find ./ -name *xfs | xargs rm -Rfv
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. lloyd_tennison

    lloyd_tennison Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    698
    Likes Received:
    1
    Trophy Points:
    168
    If nothing else - use an ftp or sftp program. They do not are about "-" or any other "illegal" characters. I use Filezillla as a good, opensource client.
     
    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