How to Copy a Directory in Linux CentOS? [EASY GUIDE]☑️
Today in this tutorial you will learn how to copy a directory in Linux CentOS.But before getting started let us quick watch this short video on how to copy directory from one location to another in Linux CentOS.
Suppose that you are having a folder named “test1” located in “/home/username/public_html/Source/test1” and you want to copy the directory “test1” to /home/username/public_html/Destination. How to do it?
You just need to execute a simple command in PuTTy listed below:
cp -r /path/to/source /path/to/destination
Where /path/to/source is “/home/username/public_html/Source/test1” and /path/to/destination is “/home/username/public_html/Destination”
Watch the video carefully so that you don’t miss anything.