码迷,mamicode.com
首页 > 系统相关 > 详细

linux command cp.

时间:2014-06-01 12:24:00      阅读:263      评论:0      收藏:0      [点我收藏+]

标签:c   style   class   blog   code   a   

Examples

cp file1.txt newdir

Copies the file1.txt in the current directory to the newdir subdirectory.

cp /home/public_html/mylog.txt /home/public_html/backup/mylog.bak

Copies the file mylog.txt in the public_html directory into the public_html/backupdirectory as mylog.bak.

cp -u *.txt newdir

Copy all files ending in .txt into the newdir directory, but only if the files do not already exist in the new directory, or if the files being copied are newer.

cp -r /home/hope/files/* /home/hope/backup

Recursively copies all the files, directories, and subdirectories in the/home/hope/files directory into the /home/hope/backup directory.

linux command cp.,布布扣,bubuko.com

linux command cp.

标签:c   style   class   blog   code   a   

原文地址:http://www.cnblogs.com/listened/p/3762900.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!