Recursive chmod / Permission Change Across Directories for a File Type

The following command may be very useful for changing the permissions of a file type such as .php to 755 from the directory and there forth:


chmod 755 -R `find . -name '*.php' -print`




Share this page:


Was this article useful? Have any suggestions or improvements to the information?

Also Read

Reset cPanel Max Defers for an Account

While viewing exim_mainlog and seeing the following: enforce_mail_permissions: Domain...

FSCK Options and Maintenance

Provided below are some useful commands pertaining to FSCK. Update commands to your environment /...

Failed to lock proc mutex: Permission denied

The error : Failed to lock proc mutex: Permission denied can occur when using mod_ruid2 with...

Remount /tmp with exec permission

There are times where you may need to have exec permission available for the /tmp folder. This...

central_filter defer (-17): error in filter file: unknown filtering command "r_subject:" near line 22 of filter file

The error "central_filter defer (-17): error in filter file: unknown filtering command...