5

I have a problem with cd-ing into folder named "--Recovery Files" and can't remember how to escape dashes in the filename. Any ideas?

3 Answers 3

15

You can use:

cd -- '--Recovery Files'

The -- tells cd that no further command line arguments should be treated as options.

0
10

2 choices:

  1. cd -- --Recovery\ Files
  2. cd ./--Recovery\ Files
5
cd -- '--Recovery Files'

The -- by itself indicates that subsequent words beginning with a dash are not to be interpreted as command-line options.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .