jlc*_*lcv 4 directory filenames
我正在尝试将一堆文件夹中的文件复制到我所在的当前目录。在终端上玩,我看到当我指定整个位置时,它可以工作:
joostin@ubuntu:~$ cp ~/unixstuff/vol/examples/tutorial/science.txt .
Run Code Online (Sandbox Code Playgroud)
但是,当我进入 unixstuff 文件夹并尝试将其直接放入当前文件夹时,出现错误。知道发生了什么吗?
joostin@ubuntu:~$ cd unixstuff
joostin@ubuntu:~/unixstuff$ cp /vol/examples/tutorial/science.txt .
cp: cannot stat ‘/vol/examples/tutorial/science.txt’: No such file or directory
Run Code Online (Sandbox Code Playgroud)
没有这样的目录/vol,但它是vol(没有斜线),所以试试吧
cp vol/examples/tutorial/science.txt .
Run Code Online (Sandbox Code Playgroud)