Skip to content

Instantly share code, notes, and snippets.

@ob1-sc
Created February 14, 2024 12:03
Show Gist options
  • Save ob1-sc/0812190028d7132be18892372f577a0c to your computer and use it in GitHub Desktop.
Save ob1-sc/0812190028d7132be18892372f577a0c to your computer and use it in GitHub Desktop.
Copy file and change ownership
rsync \
--remove-source-files \
--chown=wanteduser:wantedgroup \
/home/oldfolder /home/newfolder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment