I have a directory named:
-2
I want to cd into it but the cd complains:
bash: cd: -2: invalid option
With no success, I've tried:
cd "-2"
cd '-2'
cd \-2
Any solution?
Edit: no file browsers like mc, etc. available on the server.
|
I have a directory named:
I want to cd into it but the cd complains:
With no success, I've tried:
Any solution? Edit: no file browsers like mc, etc. available on the server. |
|||||||||
|
|
At least two ways:
|
|||||||||||||||||
|
|
Just to complement, if you'd like to remove/delete this directory you can use the following command:
|
|||
|
|
|
This will work if '-2' is in current directory.
You can autocomplete by typing - and pressing tab. |
|||
|
|