Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hidakatsuya/ea0c4d8a07ed161a35bd61d932e333ba to your computer and use it in GitHub Desktop.
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
find . -user root -not -path "./tmp/*" -exec sudo chown $(whoami):$(whoami) {} \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment