How to copy a folder from /home/kevin to /opt

Solution 1:

You have to use the -r flag when copying directories, in other words,

sudo cp -r /home/kevin/compat-wireless-3.5-3 /opt

-r means the directory will be copied recursively, content first, then the directory itself.

Solution 2:

sudo cp -r <source> <dest>

Type - man cp

for more options!... (:

Solution 3:

Enter this line at terminal :

gksu nautilus

you will nautilus as root and it will open a folder you have a privileges to copy to, so just copy and paste the file inside it

*just be careful when copying files and be sure you won't harm your device as you run as a root as mentioned