How to change directory

When I try to change my working directory to C:\Users\Michell Payano\Desktop\Data Analytics Tools, the result is -bash: cd: too many arguments. I want to know what is wrong.

3

1 Answer

The problem is the spaces between Michell and Payano, between Data and Analytics, and between Analytics and Tools.

Use this:

cd "C:\Users\Michell Payano\Desktop\Data Analytics Tools"

or this:

cd C:\\Users\\Michell\ Payano\\Desktop\\Data\ Analytics\ Tools

In the first form, the whole path is put in double quotes to avoid the string from being broken up. In the second form, spaces are "escaped" by preceding them with a backslash, meaning that they are part of the path. The backslashes already in the path need to be escaped as well to be recognized as path separators.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like