标题: copy files with(retain) old permission [打印本页] 作者: sjhf 时间: 2009-03-23 11:30 标题: copy files with(retain) old permission
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.