Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to copy entire folder in linux

    • 0
    • 1
    • 1
    • 1
    • 0
    • 0
    • 0
    • 0
    • 519
    Comment on it

    While working on linux we usually need command to copy folder from one location to another , this can be archived by simple console commands in a simple way :

    cp -r sourcedir targetdir : Where -r means recursively i.e all the files in a folder

    For example :

    1) Copy anything from current directory to /mnt/backup
    
    cp -r * /mnt/backup
    
    2) Copy whole directory (include content) /mnt/backup to target /var/www/html
    
    cp -r  /mnt/backup  /var/www/html
    
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: