The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    16
    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,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Two easy ways:

    1. Use SFTP

    2. find ./ -name *xfs | xargs rm -Rfv
     
  3. lloyd_tennison

    lloyd_tennison Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    698
    Likes Received:
    1
    Trophy Points:
    18
    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.
     
Loading...

Share This Page