<分区>
我尝试了一个命令 cp/vol/examples/tutorial/science.txt .
我得到了错误 -
cp: cannot stat `/vol/examples/tutorial/science.txt': 没有那个文件或目录
我不明白为什么会这样。我去了 cygwin 主文件夹并创建了必要的文件夹结构和文本文件。我还检查了文件夹结构和名称。那么,为什么它不起作用?
<分区>
我尝试了一个命令 cp/vol/examples/tutorial/science.txt .
我得到了错误 -
cp: cannot stat `/vol/examples/tutorial/science.txt': 没有那个文件或目录
我不明白为什么会这样。我去了 cygwin 主文件夹并创建了必要的文件夹结构和文本文件。我还检查了文件夹结构和名称。那么,为什么它不起作用?
最佳答案
你说你
went to cygwin home folder and created the necessary folder structure and text file
因此您要复制的文件不在 /vol/examples/tutorial/
中但在 ~/vol/examples/tutorial/
. ~
是您的 cygwin 主目录的缩写,通常是 /home/<username>
.
您应该能够按照 user000001 所说的那样复制文件:cp ~/vol/examples/tutorial/science.txt .
关于bash - cp : cannot stat `/vol/examples/tutorial/science.txt' : No such file or directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17842225/