Linux.com

Home Learn Linux Linux Answers Systems Management How do I create a recursive copy of the /usr/shar/doc/HTML dir into a dir called Main?
Answers
  • 
    % cd Main
    % cp -R /usr/shar/doc/HTML .
    

    -

    Answered by Derrick D Patton
    One year ago
    0 0
  • After thinking about it, this is probably what you looking for:

    
    % cp -R /usr/shar/doc/HTML Main
    
    Answered by Derrick D Patton
    One year ago
    0 0
  • Hi,

    You can try cp with either -r or -R or --recursive as an argument, e.g. cp -R
    man cp or info cp would provide the helpful details.

    Answered by vWil
    One year ago
    0 0
  • the command your looking for would be cp -a (which copies recursively and maintains all permissions and ownership) /usr/shar/doc/HTML /dir/to/cpy/to/Main or if it is in the same folder just use ./Main

    Answered by Charles Webb
    One year ago
    0 0
  • cd /usr/share/doc
    cp -a HTML /location/where/you/want/to/copy/to/Main

    Answered by bofhorg
    One year ago
    0 0
Please register/login to answer this question. Click here to login
Similar Questions Found
Questions from category Systems Management

Upcoming Training Courses

  1. LF411 Embedded Linux Development
    24 Jun » 28 Jun - Silicon Valley
    Details
  2. LF331 Developing Linux Device Drivers
    05 Aug » 09 Aug - Virtual
    Details
  3. LF320 Linux Kernel Internals and Debugging
    12 Aug » 16 Aug - Virtual
    Details

View All Upcoming Courses

Community Answers - Search


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board