Table of Contents
How to change the permission of files and folders?
Use chmod along with -exec to change the permissions.
# find ./ -type f -exec chmod 777 {} \;
this command changes all files permission to 777 in PWD.
Use “-type d” for directory!
How to change ownership?
That’s simple. Use the chown command within the -exec to change the ownership as you wish.Linux
# find ./ -type f -exec chown images. {} \;
Where “images” is the user and group name.