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)