首页 > 代码库 > linux command cp.
linux command cp.
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.
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。