Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cp: cannot stat `/vol/examples/tutorial/science.txt': No such file or directory [closed]

Tags:

bash

unix

cygwin

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 ?

like image 751
bashboy Avatar asked Jan 01 '26 04:01

bashboy


1 Answers

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 .

like image 53
derlarsschneider Avatar answered Jan 03 '26 12:01

derlarsschneider



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!