To copy an entire folder (directory tree) in Linux, use the following method:
mkdir target_directory
cd source_directory
cp -ap . target_directory
Other options:cp -apv . target_directory
(for verbose results)\cp -ap . target_directory
(for unix)
More info:
- linuxguide.sourceforge.net