Search code examples
unixsudomvchown

Unix: command for sudo-mv-chown combo?


I am operating as sudo in a system where I mv a great amount of files and dirs to and fro. Is there a command for the combo?

$ sudo -i; # mv hello /home/other; # chown -R other:other /home/other/hello

Solution

  • Try the install command (options -o, -g and -m).