I have a directory named:
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
Edit: no file browsers like mc, etc. available on the server.
At least two ways:
This will work if '-2' is in current directory.
You can autocomplete by typing - and pressing tab.
Just to complement, if you'd like to remove/delete this directory you can use the following command: