Jump to content

Copying files and folders in CLI [solved]


Recommended Posts

I'm sure this will be a real easy one!

 

Basically, I downloaded Mozilla Thunderbird and extracted to:

 

/home/ian/documents/downloads/mozilla/thunderbird

 

What I want to do is move it to the following location:

 

/usr/local/mozilla/thunderbird

 

When I use Konqueror, I don't have the rights, because it needs to be root access. I have tried the following command:

 

cp /home/ian/documents/downloads/mozilla/thunderbird/*.* /usr/local/mozilla/thunderbird

 

when running as superuser. But it only seems to copy the files. How can I get it to copy all the subdirectories within thunderbird also. Is there an alternative command?

Edited by ianw1974
Link to comment
Share on other sites

Cool thanks for that.

 

I have managed to do it. Many thanks. My initial problem I think was the *.* I was using at the end, because this was limiting it to files.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...