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
You can use:
cd -- '--Recovery Files'
The --
tells cd
that no further command line arguments should be treated as options.
cd -- '--Recovery Files'
The --
by itself indicates that subsequent words beginning with a dash are not to be interpreted as command-line options.