Script for viewing files whose permission is not 644 and change it to 644
find . -type f ! -perm 644
type: specifies whether the type of file, f for file d for directory
! perm: permission not equal to
find . -type f ! -perm 644 -exec chmod 644 {} \;
exec: execute change
find . -type f ! -perm 644
type: specifies whether the type of file, f for file d for directory
! perm: permission not equal to
find . -type f ! -perm 644 -exec chmod 644 {} \;
exec: execute change
No comments:
Post a Comment