问题
I'm new to Ubuntu. I tried to open a file with name which has space in it. I used cd command. it shows bash : cd : too many arguments
Whenever a file name has a space in it. It is showing this error. What should I do?
回答1:
Use quotes:
cd "new folder"
or escape the space:
cd new\ folder
(That being said, cd
does not open a file but changes the working directory.)
来源:https://stackoverflow.com/questions/47351933/bash-cd-too-many-arguments