0

问这个问题感觉很傻,但似乎无法将目录更改为Windows XP IE7. 有关我尝试过的内容,请参见下文。

[root@localhost VirtualBox VMs]# ls -l
total 8
drwxr-xr-x 4 justMe justMe 4096 Dec 19 07:20 Windows XP IE6
drwxr-xr-x 4 justMe justMe 4096 Dec 19 06:48 Windows XP IE7
[root@localhost VirtualBox VMs]# cd Windows XP IE6
-bash: cd: Windows: No such file or directory
[root@localhost VirtualBox VMs]# cd Win*
[root@localhost Windows XP IE6]# ls -l
total 3558896
drwx------ 2 justMe justMe       4096 Dec 19 07:20 Logs
drwx------ 2 justMe justMe       4096 Dec 19 07:20 Snapshots
-rw------- 1 justMe justMe      18529 Dec 19 07:20 Windows XP IE6.vbox
-rw------- 1 justMe justMe      18586 Dec 19 07:20 Windows XP IE6.vbox-prev
-rw------- 1 justMe justMe 3640700928 Jul 24 12:03 Windows XP IE6.vdi
[root@localhost Windows XP IE6]#
4

1 回答 1

6

在 Bash 中,您必须引用其中包含空格的命令参数。

这就是为什么避免这种空白是一个好主意的原因之一。

你需要:

$ cd "Windows XP IE6"
于 2012-12-19T15:45:23.913 回答