Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unix: command for sudo-mv-chown combo?

Tags:

unix

sudo

mv

chown

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
like image 307
hhh Avatar asked Dec 13 '25 07:12

hhh


1 Answers

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

like image 167
Philipp Avatar answered Dec 15 '25 20:12

Philipp



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!