Share icon

Find is best command to apply permission to directories and files recursively to all .

For Directories

find /desired_location -type d -print0 | xargs -0 chmod 0755

For Files

find /desired_location -type f -print0 | xargs -0 chmod 0644

 

Add new comment

Restricted HTML