If you would like to be change specific file permission including sub folders of your current directory in your Linux operating system. The below command is to find and change the permission,
$ sudo find current-directory -name "*.php" -perm 755 -exec chmod 644 {} \;
The below command is find and displays .php extension,
$ sudo find current-directory -name "*.php"
Comments (0)