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.
Asked
Active
Viewed 1.5k times
0
-
Copy and Paste is not the same as copying files. – Brian Sizemore Apr 20 '15 at 00:10
1 Answers
2
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

TheWanderer
- 19,395
- 12
- 50
- 65