I have a folder named abcd\fff\ggg\ddd
How do I cd
into it?
You have to escape the backslash character in order for it to work:
cd abcd\\fff\\ggg\\ddd/
Escaping means prefixing the backslash (also have to do this if the directory contains a space) with, funnily enough, a backslash. Linux interprets a single backslash as the escape character, allowing you to access directories and files containing spaces, backslashes, and other special characters.
That is best practice; it is a good idea to get in the habit of understanding how and when to use the escape character if you're going to be using Linux command line. The other answer provided:
cd 'abcd\fff\ggg\ddd'
will also work. I provided mine as a more complete and 'correct' answer, since understanding the concept of escape characters is essential to proper CLI interaction.
/
).mkdir "foo
[Enter]bar"
in the shell.)