以root身份移动文件保留所有权linux

前端之家收集整理的这篇文章主要介绍了以root身份移动文件保留所有权linux前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
操作系统:Debian.
我希望能够以root用户身份和命令行移动文件文件夹,而无需更改其所有者和组.
这可能吗?

解决方法

rsync: @H_404_8@-A,--acls preserve ACLs (implies --perms) -X,--xattrs preserve extended attributes -o,--owner preserve owner (super-user only) -g,--group preserve group --devices preserve device files (super-user only) --specials preserve special files

男子rsync

猜你在找的Linux相关文章