Copy entire folder in Linux

 

|   |  Comments (2) |  TrackBacks (0)

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

你可能感兴趣的:(linux)