Linux find command -perm mode confusion
I'm having some difficulty trying to figure out the difference when using the 'find -perm' command modes.
-perm permissions - Find files with exact permissions. (I get this one)
-perm -permissions - Find files with all the specified permissions.
-perm /permissions - Find files with any of the specified permissions.
I guess my difficultly is distinguishing when to use the '-perm -mode' and 'perm /or+ mode'.
I'm doing some practice questions and got tripped up on the following:
Which command can be executed to find all the files in the current directory for which the file owners have read and write permissions?
My answer: find -perm +0600
Correct answer: find -perm -0600
I then see a bunch of examples on the net where people commonly use -perm to find the SGID/SUID files on the system.
find / -type f -perm +6000 -ls
Why is +6000 used as opposed to -6000?
If somebody could please help me understand this, it would be greatly appreciated.