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 derrickdp
    2 years ago
    0 0
  • After thinking about it, this is probably what you looking for:

    
    % cp -R /usr/shar/doc/HTML Main
    
    Answered by derrickdp
    2 years 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
    2 years 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 bloodwraith
    2 years ago
    0 0
  • cd /usr/share/doc
    cp -a HTML /location/where/you/want/to/copy/to/Main

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

Upcoming Linux Foundation Courses

  1. LFS426 Linux Performance Tuning
    08 Sep » 11 Sep - New York
    Details
  2. LFS520 OpenStack Cloud Architecture and Deployment
    08 Sep » 11 Sep - Virtual
    Details
  3. LFD320 Linux Kernel Internals and Debugging
    15 Sep » 19 Sep - 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