16 12
发新话题
打印

为什么要用 tar 来实现 cp 功能呢?

测试了 cp -p 和 tar - cf | ( cd /tmp; tar xf - )
两个效果是一样的
change time 都会改变, modify time 和 access time 不会变.

对符号链接的处理也是一样的.      
Advance Monitor - Linux Monitoring Solution

TOP

差异会不会是对大量文件的处理方式?
我到 linuxquestions.org 上问问看      
Advance Monitor - Linux Monitoring Solution

TOP

http://www.itworld.com/Comp/1375/nls_unixcopy050512/index.html
这里介绍的比较详细。      
Advance Monitor - Linux Monitoring Solution

TOP

资料不错:)

P.S.
我一般用cp -a      
面包会有的 女人也会有的
_______________________

TOP

哇,这里的老大,人都太好了,谢谢      

TOP

有道理
应该就让其保持现有的权限吧      

TOP

 16 12
发新话题