CentOS: Copy directory to another directory
Solution 1:
cp -r /home/server/folder/test /home/server/
Solution 2:
To copy all files, including hidden files use:
cp -r /home/server/folder/test/. /home/server/
Solution 3:
As I understand, you want to recursively copy test directory into /home/server/
path...
This can be done as:
-cp -rf /home/server/folder/test/* /home/server/
Hope this helps
Solution 4:
This works for me.
cp -r /home/server/folder/test/. /home/server