M BUZZ CRAZE NEWS
// news

simple cp command problem " i try to copy only "

By David Jones
cp: 'test.txt' and 'test.txt' are the same file
asadzoot@asadzoot-Vostro-14-3468:~/cnc/q1$ cp test.txt home/asadzoot/cnc/q1/
cp: cannot create regular file 'home/asadzoot/cnc/q1/': No such file or directory
3

1 Answer

Your command seems off, this:

cp test.txt home/asadzoot/cnc/q1/

should be:

cp test.txt /home/asadzoot/cnc/q1/

But of course make sure your running this command from the location of the test.txt file.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy