cp -a = cp -pdr
p (preserve 保持) 复制时保持文件原有的属性(preserve) 模式 所有权 时间戳
d 连接文件 no dereference 复制时拷备连接文件的属性非原文件本身的
r 递归复制
2.用cp建立链接文件
cp -sr filename desfile 建立文件的软连接
cp -lr filename desfile 建立文件的硬连接
标签:style filename ref blog reserve 建立 enc pre 递归
cp -a = cp -pdr
p (preserve 保持) 复制时保持文件原有的属性(preserve) 模式 所有权 时间戳
d 连接文件 no dereference 复制时拷备连接文件的属性非原文件本身的
r 递归复制
2.用cp建立链接文件
cp -sr filename desfile 建立文件的软连接
cp -lr filename desfile 建立文件的硬连接
标签:style filename ref blog reserve 建立 enc pre 递归
原文地址:https://www.cnblogs.com/wlttas/p/8191362.html