How do we copy files ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How do we copy files ?

How do we copy files ? cp/home/(your_username)/HelloWorld.c . I tried to write the computer name and file name in the username location, but an error appears

22nd Jan 2021, 9:13 PM
STOP
STOP - avatar
2 Answers
+ 2
You need a space after cp and also need to specify the destination location.
22nd Jan 2021, 10:00 PM
Sonic
Sonic - avatar
+ 2
cp <src_path> <dest_path>
22nd Jan 2021, 10:01 PM
Sonic
Sonic - avatar