Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

using cd command to navigate through Program x86 and some pathing problems

I'm trying to get into a file using

cd Program Files (x86)\Google\google_appengine

starting from the C:// folder.

I tried googling around and I keep getting things along the lines of

${Env:ProgramFiles(x86)}

or to use a dir command. But it doesn't lead me to google_appengine. It just displays my file. I'm pretty sure I just don't know what words to google since I'm new and wondering if someone could help me.

like image 545
Lem Avatar asked Sep 09 '25 12:09

Lem


1 Answers

PowerShell uses the Tab key for directory completion. So if you type

cd C:\Program

Then press Tab key to cycle through names, you will see how PowerShell adds quote marks around the directory name. If you don't quote the directory name, the cd command (which is an alias for Set-Location) won't know that the arguments after the command are a single path name. The quotes tell PowerShell that the stuff in between the quotes is a single argument instead of multiple arguments.

like image 131
Bill_Stewart Avatar answered Sep 11 '25 10:09

Bill_Stewart