Mass ownership and permission change – Linux – Find command

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.

permission, Mass ownership and permission change – Linux – Find command, Hostripples Web Hosting


Mass ownership and permission change – Linux – Find command, Hostripples Web Hosting
Vishwajit Kale
Vishwajit Kale blazed onto the digital marketing scene back in 2015 and is the digital marketing strategist of Hostripples, a company that aims to provide affordable web hosting solutions. Vishwajit is experienced in digital and content marketing along with SEO. He's fond of writing technology blogs, traveling and reading.
Subscribe Now to stay updated.

Please fill in your email address to get most latest updates.