首页 > 其他 > 详细

HowTo Copy a Folder

时间:2016-04-26 14:04:28      阅读:223      评论:0      收藏:0      [点我收藏+]

参考: http://www.cyberciti.biz/faq/copy-folder-linux-command-line/
In this example copy /home/vivek/letters folder and all its files to /usb/backup directory:

cp -avr /home/vivek/letters /usb/backup

-a : Preserve the specified attributes such as directory an file mode, ownership, timestamps, if possible additional attributes: context, links, xattr, all.
-v : Explain what is being done.
-r : Copy directories recursively.

Copy a folder called /tmp/conf to /tmp/backup:
$ cp -avr /tmp/conf/ /tmp/backup

HowTo Copy a Folder

原文:http://www.cnblogs.com/qike/p/5434582.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!