How to cd to a directory with a name starting with a "-" (minus)?

Solution 1:

This should just work:

cd /path/to/-folderthatstartswithdash

EDIT:

According to this question, this works if you only want to input the name:

cd -- -folderthatstartswithdash

Solution 2:

cd ./-folder

usually works quite well here (and also with other commands)