+ 1

copying a file into a directory

Hi everyone, Sorry if this is not the right platform to ask this question, but id appreciates any help on this. I made a file using "touch file" and would like to copy this into a directory. inside this directory is another file I made also using "touch newfile" inside the directory, I'm using the command " cp file /user/directory/newfile" but I'm getting an error saying "no such file or directory" does anyone know what I'm doing wrong? Appreciate the help.

8th Sep 2020, 6:32 PM
David
David - avatar
3 Antworten
8th Sep 2020, 6:53 PM
Aditya
Aditya - avatar
+ 4
David glad to know about this. Your welcome :))
9th Sep 2020, 1:56 AM
Aditya
Aditya - avatar
+ 2
Aditya thank you for answering. the links helped. i was able to figure it out.
8th Sep 2020, 7:28 PM
David
David - avatar