Bash: cd: too many arguments

I'm new to Ubuntu I tried to open a file with a name that has a place in it I used the cd command it shows bash: cd: too many arguments

whenever there is a space in the file name. He shows this error. What should I do? thanks in advance

+4
source share
1 answer

Use quotation marks:

cd "new folder"

or remove the space:

cd new\ folder

(It cddoes not open the file, but changes the working directory.)

+10
source

Source: https://habr.com/ru/post/1689453/


All Articles