0

I've been trying to access a directory but it seems as if I'm not allowed to do an indirect cd command. I'm trying to access

> C:\Program Files

But it seems like using cd \Program Files doesn't work, I also tried cd \Program_Files but to no avail, what is the correct syntax?

2
  • Try cd "C:\\Program Files". The backward slash is an escape character in Unix so you have to escape to mean a literal backward slash Commented Sep 8, 2015 at 14:56
  • I indeed used the backward slash, but found that I had to put it after "Program" like this C:\Program\ Files Commented Sep 8, 2015 at 15:08

1 Answer 1

1

Escape with '\'

cd C:\Program\ Files
Sign up to request clarification or add additional context in comments.

1 Comment

The other option is to put quotes around the path: cd "C:\Program Files"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.