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?
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?
15
You can use:
cd -- '--Recovery Files'
The --
tells cd
that no further command line arguments should be treated as options.
10
2 choices:
cd -- --Recovery\ Files
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.