Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 7 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
sudo cp -r <source> <dest>

Type - man cp

for more options!... (:

share|improve this answer

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
you can add an ampersand at the end so you can close the terminal and keep your nautilus window open: gksu nautilus & – Alexander Taylor Oct 10 '14 at 20:48
also, this might work with other desktop environments as well: gksu xdg-open . & – Alexander Taylor Oct 10 '14 at 20:49

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

Your Answer


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.