Change directory with space followed by '('

There are 2 directory sites I can transform to:

Program Files/       Program Files (x86)/

I can transform to first one by creating:

cd Program\ Files

But the 2nd for 2nd one:

cd Program\ Files\ (x86)

I get:

bash: syntax error near unexpected token `('

What is properly to transform to 2nd directory site?

2022-06-07 14:32:33
Source Share
Answers: 2

You need to run away the parentheses:

cd Program\ Files\ \(x86\)

Pressing TAB will generally finish the command line for you, and also will certainly offer tips just how to price estimate the file/directory names.

2022-06-07 15:00:29

Another means to complete the very same is to price estimate the course having whitespace:

cd "Program Files (x86)"

This additionally collaborates with tab - conclusion so you can type:

cd "Program<Space><Tab><Space><Tab>

Notice the opening double - quote. After that you will certainly get:

cd "Program Files (x86)"/
2022-06-07 14:59:42