注册 | 登录 忘记密码? 51cto首页 | 博客 | 论坛 | 招聘
热点文章 linux服务器被黑了
 帮助

copy files with(retain) old permission


2007-09-14 08:23:56
 标签:Linux tip cp command   [推送到技术圈]

cp -pr /home/joe/htdocs-working/app /usr/local/apache2/htdocs/app

Use the switch -p to preserve each file permission and the -r switch is to copy all subdirectories recursively.





    文章评论
 
 

发表评论

昵   称:
验证码:  点击图片可刷新验证码  博客过2级,无需填写验证码
内   容: