Linux(Debian、Ubuntu Mint...)では、
次の操作を行わずに他のユーザーにファイルを転送できるオプションコマンドやその他のコマンドはありますか?
sudo mv /home/poney/folderfulloffiles /home/unicorn/
sudo chown -R unicorn:unicorn /home/unicorn/folderfulloffiles
ベストアンサー1
使用rsync(1)
:
rsync \
--remove-source-files \
--chown=unicorn:unicorn \
/home/poney/folderfulloffiles /home/unicorn/