Linux Commands SERVER MANAGEMENT

How to change the file/directory permission using find command?

Basic OpenVZ commands
Basic OpenVZ commands

The find command is used to locate files on a Unix or Linux system. You can search for files by name, owner, group, type, permissions, date, and other criteria.

You can change the permissions of all files and directories using the following commands.

For Files:

find . -type f -exec chmod 644 {} \;

For directories:

find . -type d -exec chmod 755 {} \;

If you like the post and wish to receive more articles from us, please like our FB page: If you like this post and wish to receive more articles from us, please like our FB page: Button Your suggestions and feedbacks will encourage us and help to improve further, please feel free to write your comments.
For more details on our services, please drop us an E-mail at info@grepitout.com