Find all the writable files in a directory

find . -maxdepth 1 -perm /222

The /222 means any of the bits set here are set in the permissions of the file. If I only care if it is writable by the owner, I would pass /200 as the argument.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.