Software >> OS >> Unix >> Linux >> RHEL >> All >> find command examples

## find all files where the permission has user:rw, group:rw, other:r

[root@rhel78t]# find /var/log -type f -perm -u+rw,g+rw,o+r -exec ls -ldh {} \;
-rw-rw-r--. 1 root utmp 604K Oct 11 00:42 /var/log/wtmp


 

## find all files where the permission is -rw-r--r--

[root@rhel78]# find /var/log -type f -perm -u+rw,g+r,o+r -exec ls -ldh {} \;
-rw-r--r--. 1 root root 471K Sep 28 23:50 /var/log/sa/sa28
-rw-r--r--. 1 root root 404K Oct  5 23:53 /var/log/sa/sar05