bash : cd : too many arguments [closed]

 ̄綄美尐妖づ 提交于 2020-01-20 17:28:33

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!