I'm trying to find all the setuid/setgid binaries on my system. I've found two different ways to do this online.
What's the difference between
find / -perm +6000 -type f
and
find / -perm /6000 -type f
?
The latter is mentioned more often, and their results are the same. I want to make absolutely sure I don't miss any files. Are they the same?
I'm running this on an Ubuntu trusty box, but that could change in the future.
Best Answer
The
find
manual page explains:So yes, they're the same thing, but you should use
-perm /mode
.