Home > FAQ & Tip > How to copy entire folder in Linux?

How to copy entire folder in Linux?

December 12th, 2008 Leave a comment Go to comments

Here’s another simple command for novice linux user

Copy entire folder (including content) to another location

cp -R

Example:

cp -R /home/myid/myfolder /var/www/newfolder

This will copy myfolder to newfolder. In another word, content inside myfolder will be now in newfolder

Categories: FAQ & Tip
  1. No comments yet.
  1. No trackbacks yet.