Flat 80% OFF + Addl. 10% OFF on All EICT (IIT Roorkee) Courses. Use Coupon Code 10PLUS during Checkout | Expires in

 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