Reputation: 6758
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
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