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?
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?
Try changing its name first;
#mv ---------- 2_files two_files
or try putting the name in quotes i.e.
cd "---------- 2_files"
or cd -*2_files
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