linux - 如何解决 Bash : cd : too many arguements error? 的问题

标签 linux bash ubuntu cd

关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。












我们不允许在 Stack Overflow 上提出有关通用计算硬件和软件的问题。您可以编辑问题,使其成为 on-topic对于堆栈溢出。


6 个月前关闭。







Improve this question




每当我命令 cd <file/directory>它给出的输出为bash:cd:too many arguements我正在使用 Bash 版本 5.0.17 ,并且经常遇到这个问题。

最佳答案

尝试引用您的目录。最有可能你的名字中有空格;)

 cd "<file/directory>"
参见示例:
$ cd a b
-bash: cd: too many arguments
 $ cd 'a b'
 :~/a b$

关于linux - 如何解决 Bash : cd : too many arguements error? 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70649806/

相关文章:

bash - 使用sudo时如何使用tee

ubuntu - 在 Ubuntu 14.04 上安装 Docker 失败

bash - 我想编写一个在多个新终端中启动命令的 bashrc 别名

c - 在 C 中多线程时同步无法正常工作

linux - 在 linux 中,如何测试程序的输出是发送到实时终端还是发送到文件?

c - 为什么 C clock() 返回 0

linux - 从许多 csv 文件中删除重复项

Linux命令设置TCP窗口大小

ubuntu tomcat8 无法启动

linux - 共享内存中的 Shared_dirty 与 Private_dirty