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

操作系统:Debian.
我希望能够以root用户身份和命令行移动文件文件夹,而无需更改其所有者和组.
这可能吗?

解决方法

rsync:
-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

相关文章

insmod和modprobe加-f参数导致Invalid module format错误 这...
将ArchLinux安装到U盘 几个月前入门Arch的时候上网搜了不少安...
1、安装Apache。 1)执行如下命令,安装Apache服务及其扩展包...
一、先说一下用ansible批量采集机器信息的实现办法: 1、先把...
安装配置 1. 安装vsftpd 检查是否安装了vsftpd # rpm -qa | ...
如何抑制stable_secret读取关键的“net.ipv6.conf.all.stabl...