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 want to take the contents of home/magpie/xoops-2.5.5/htdocs/ and put it into var/www using the terminal. I don't want to go downloading anything I don't need.

share|improve this question
    
Please clarify a bit (the situation).What version are you using. Your question not answerable in current form. –  Web-E Jul 13 '12 at 4:31
    
I want to take the contents of home/magpie/xoops-2.5.5/htdocs/ and put it into var/www –  Magpie Jul 13 '12 at 4:59

2 Answers 2

up vote 1 down vote accepted

I want to take the contents of home/magpie/xoops-2.5.5/htdocs/ and put it into var/www

To do what you want, open a terminal with Ctrl-Alt-T and type:

cp -vR /home/magpie/xoops-2.5.5/htdocs/* /var/www/
share|improve this answer
1  
that worked. Thanks! –  Magpie Jul 13 '12 at 5:28

To copy everything (including subdirectories) into the root (/) folder you would

  1. Change to that directory

    cd DIR
    
  2. Then copy everything to the root folder

    cp -R * /
    
share|improve this answer
    
Thanks, I am not sure I want everything in there but that is useful to know anyway! I only want the contents of a particular folder at the moment –  Magpie Jul 13 '12 at 5:01

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.