how to give 777 permission to all files in a directory code example Example: find all files with 777 permissions find / -type f -perm 0777