I tried a command cp /vol/examples/tutorial/science.txt . and I get the error -
cp: cannot stat `/vol/examples/tutorial/science.txt': No such file or directory
I don't understand why this is happening. I went to cygwin home folder and created the necessary folder structure and text file. I also checked the folder structure and names. So, why is it not working ?
You said you
went to cygwin home folder and created the necessary folder structure and text file
So the file you are trying to copy is not located in /vol/examples/tutorial/ but in ~/vol/examples/tutorial/. ~ is an abbrevation for your cygwin home directory, usually /home/<username>.
You should be able to copy the file as user000001 says: cp ~/vol/examples/tutorial/science.txt .
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With