find . -user root -not -path "./tmp/*" -exec sudo chown $(whoami):$(whoami) {} \
Created
January 6, 2023 15:51
-
-
Save hidakatsuya/ea0c4d8a07ed161a35bd61d932e333ba to your computer and use it in GitHub Desktop.
Command to change the owner of file owned by root to current user
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment