Glam Prestige Journal

Bright entertainment trends with youth appeal.

I'm studying find command options.

Will

find . -perm -o=r

and

find . -perm /o=r

give the same results?

0

1 Answer

Yes, those are the same. The difference comes when there is more than one permission listed, in which case, - will require all of the permissions be set on the files it lists, while / will require any of the permissions be set on the files it lists.

For example, -perm -o=rw will find files which others can both read and write, while -perm /o=rw will find files which others can read as well as files which others can write.

See the man find section on the -perm option.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy