No such file or directory when copying files to current directory
57,917
There is no such directory /vol, but it is vol (without slash), so try just
cp vol/examples/tutorial/science.txt .
Related videos on Youtube
![kaan bobac](https://lh6.googleusercontent.com/-Js08lhrb3uw/AAAAAAAAAAI/AAAAAAAAALI/abop0pIF_8Y/photo.jpg?sz=256)
Author by
kaan bobac
Updated on September 18, 2022Comments
-
kaan bobac almost 2 years
I am trying to copy a file from inside a bunch of folders to the current directory I am in. Playing around with the terminal, I see that when I specify the entire location it works:
joostin@ubuntu:~$ cp ~/unixstuff/vol/examples/tutorial/science.txt .
But when I go into the unixstuff folder and try to bring it into the current directly I get an error. Any idea what is going on?
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