0

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.

muru
  • 207,228

1 Answers1

5

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.

Jos
  • 30,529
  • 8
  • 89
  • 96