Ubuntu: How to copy and paste a file through the command-line? [duplicate]



Question:

This question already has an answer here:

I want to copy and paste a file to /usr folder but I guess I need root access to do so so I need to learn how to copy and paste a file from one location to another through the terminal.


Solution:1

This should do it:
For a file: sudo cp /path/to/file /path/to/destination-folder/
For a folder: sudo cp -R /path/to/folder /path to destination-folder


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »