cateof
cateof

Reputation: 6758

Find writable files in Mac OS

I want to find (recursively) writable files in my directory. My operating system is MacOS.

I tried:

find . -type  -writable

but the shell returns an error:

find: -type: -writable: unknown type

Why I got the error? Are there alternatives?

Upvotes: 4

Views: 2277

Answers (1)

Thor
Thor

Reputation: 47109

Writable by whom?

If you mean writable by any, you can use:

find . -type f -perm -0222

or

find . -type f -perm -ugo=w

If you mean writable by other, use:

find . -type f -perm -0002

or

find . -type f -perm -o=w

Upvotes: 5

Related Questions