Command Line hiccup: Could not “cd” to a directory

What happened here? I could not “cd” into the Python Practice directory. Normally this would work.

Screenshot at Mar 19 15-51-19

I found out that white spaces are not recognized. Python Practice has space in between so the computer did not recognize it.

I have to put an escape character “\” for it to work.

The command now looks like this:

cd Python\ Practice/

 

Another trick I discovered is using the tab key on the keyboard. When I type “cd Py” then hit the tab key it auto-finds the matching folder.

Cool! Hiccup is gone. I can move on and run my scripts!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s