如此处所述:https : //unix.stackexchange.com/questions/124855/move-files-and-change-ownership-at-the-sametime
使用 rsync(1):
rsync \
--remove-source-files \
--chown=wanteduser:wantedgroup \
/home/oldfolder /home/newfolder
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
19758 次 |
| 最近记录: |