红联首页 凝聚Linux人的力量
菜鸟过关 | 精华文档 | 同城人(交友) | 我与Linux的故事 | Linux新闻 | Linux视频 | Linux人才 | 软件下载 | 大学校园 | English
发新话题
打印

Bash: a one-time copy the entire folder

Bash: a one-time copy the entire folder

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)

TOP

发新话题