*nix - find and change


/ Published in: Bash
Save to your folder(s)

find all files owned by xxx and change them to be owned by yyy


Copy this code and paste it in your HTML
  1. # find all files owned by ‘501’ and change them to be owned by wee me:
  2.  
  3. sudo find / -user 501 -print0 | xargs -0 chown madra

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.