Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Mar 2004
    Posts
    859

    Default cd into a badly named directory? How?

    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. #2
    Member
    Join Date
    Jul 2004
    Posts
    496

    Default

    Try changing its name first;
    #mv ---------- 2_files two_files

  3. #3
    Member verdon's Avatar
    Join Date
    Nov 2003
    Location
    Northern Ontario, Canada
    Posts
    792

    Default

    or try putting the name in quotes i.e.
    cd "---------- 2_files"

  4. #4
    Member
    Join Date
    Sep 2004
    Posts
    10

    Default

    or cd -*2_files

  5. #5
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Another trick is to keep using <TAB> to complete the command line which will usually backslash as needed. Simplest is probably to use SFTP
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. named: the working directory is not writable
    By speckados in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-06-2010, 02:34 PM
  2. Directory named \t\t\t\t at root of filesystem after update
    By Oriso in forum cPanel and WHM Discussions
    Replies: 17
    Last Post: 12-17-2007, 12:16 PM
  3. How can I access a directory named only \\ ?
    By jols in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-13-2007, 04:12 PM
  4. directory named lib/ is not viewable via the web.
    By wptechno in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-02-2006, 06:10 PM
  5. How can I remove a directory named -xfs ?
    By BianchiDude in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-15-2005, 04:31 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube