Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a new computer installed with Ubuntu 12.04. Then I want to install wireless driver named compat-wireless-3.5-3. Before that, the driver folder to /home/kevin.

I want to install it on /opt directory. Before install the driver, i want to copy the driver folder from /home/kevin to /opt. I try to use ordinary copy (Right Click Copy Paste), but the paste is blured.
After that, i tried using this on terminal:

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

But I get this error:

cp: omitting directory `home/kevin/compat-wireless-3.5-3'

What does the command mean? I can't copy the driver folder until now.

share|improve this question
add comment

4 Answers

up vote 4 down vote accepted

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.

share|improve this answer
add comment
sudo cp -r <source> <dest>

Type - man cp

for more options!... (:

share|improve this answer
add comment

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

share|improve this answer
add comment

Or you can try

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

The "*" wildcard takes in the folder and the files in compat-wireless-3.5-3 and will copy them to /opt folder.

share|improve this answer
    
This is a bad idea. This will copy the files in compat to /opt. It will not create a /opt/compat folder and will not copy any folders in compat. –  Alex L. Oct 13 '12 at 6:09
    
You are right, my bad about that. –  veepsk Oct 13 '12 at 15:33
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.