原帖由 "linuxbao3" 发表:
回通明,cp -R 是指的把属性一块带过去。比如说,一个文件是属于bao3的,然后你以root身份执行 cp ,这样的话,这个文件就是属于root的了。但是如果你用cp -R,那么这个文件就还是属于bao3的。
希望没说错,以前?.........
-R If source_file designates a directory, cp copies the directory and
the entire subtree connected at that point. If the source_file
ends in a /, the contents of the directory are copied rather than
the directory itself.
This option also causes symbolic links to be
copied, rather than indirected through, and for cp to create spe-
cial files rather than copying them as normal files.
Created
directories have the same mode as the corresponding source direc-
tory, unmodified by the process' umask.
原帖由 "linuxbao3" 发表:
回通明,cp -R 是指的把属性一块带过去。比如说,一个文件是属于bao3的,然后你以root身份执行 cp ,这样的话,这个文件就是属于root的了。但是如果你用cp -R,那么这个文件就还是属于bao3的。
希望没说错,以前?.........
原帖由 "daniel2000" 发表:
-p Cause cp to preserve the following attributes of each source file in the copy: modification time, access time, file flags, file mode, user ID, and group ID, as allowed by permissions.
把属性..........
原帖由 "hbaoy" 发表:
cp在bsd下用-r好像是没有不能用
openoffice都更新了,又为何非要去用哪个1。4呢
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |