Offer Ends Today | 80% + 10% Off & 30-days Extra Lab | Use Coupon Code MSD on Checkout |

  Enroll Now

Linux Basics

19 / 87
   

Copy a directory into another directory

  1. Create a directory "src"

    mkdir src
    
  2. Create a file in "src"

    touch src/myfile.txt
    
  3. Create a directory "proj"

    mkdir proj
    
  4. Copy the src into "proj"

    cp -r src proj