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!

cd into a badly named directory? How?

Discussion in 'General Discussion' started by jols, Jan 31, 2007.

  1. jols

    jols Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,111
    Likes Received:
    3
    Trophy Points:
    168
    I am trying to cd into a directory named exactly this:

    ---------- 2_files

    Of course the action gets two dashes in and responds with an invalid optioin error.

    Any ideas?
     
  2. kernow

    kernow Well-Known Member

    Joined:
    Jul 23, 2004
    Messages:
    929
    Likes Received:
    15
    Trophy Points:
    168
    cPanel Access Level:
    Root Administrator
    Try changing its name first;
    #mv ---------- 2_files two_files
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    870
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
    or try putting the name in quotes i.e.
    cd "---------- 2_files"
     
  4. zack6924

    zack6924 Member

    Joined:
    Sep 30, 2004
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    151
    or cd -*2_files
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Another trick is to keep using <TAB> to complete the command line which will usually backslash as needed. Simplest is probably to use SFTP ;)
     
    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