• You can play around with this option further: find / -perm -644. With an addition of a dash symbol, it will return with all the files that have at least 644 permission.
  • The files don't have to be writable by both the owner and group to be matched; either will do. find . -perm -220 find . -perm -g+w,u+w.
  • If you want to use the find command to check for matches based on the permissions of the file you need to use the -perm test.
  • I've been playing around with the -perm option of the find command, and I want to know what the difference is between the -perm -mode and -perm /mode And if possible to give an example of each?
  • find . -perm 754. ... find . -perm u=rwx,g=rx,o=r. Same as the above command, but uses a symbolic representation of the permission bits.
  • Find files based on their numeric (octal) permissions. Now let me run the following command: $ find -perm 777.
  • Find all the SGID bit files whose permissions are set to 644. # find / -perm 2644.
  • Simply put a minus sign before the octal value. The group write permission bit is octal 20, so the following negative value: find . -perm -20 -print.
  • The "perm" option of find command accepts the same mode string like chmod. The following command finds all files with permission 644 and sgid bit set.
  • Here, the plus 1G means greater than 1G. How do you find a file by permission on a linux? You can use the find command with search parameters perm.