Saari Development

Ali Rizvi's Technical Blog as a Professional Software Development Engineer

Find all writeable files in a directory tree

leave a comment »

I needed to find if I forgot to p4 edit (or add) any of the files I was working with and needed to find all writeable files in my current directory structure (recursively). I did a quick search and found a newsgroup entry that helped (referenced below) but here is what you need to do :

find . -type f -perm +200

4 is for readable(r)
2 is for writeable (w)
1 is for executable (x)


man find

and search for perm to find more of what more you can do.

Here is a better reference: Searching for files by permission


Written by imsaar

March 20, 2007 at 7:28 pm

Posted in general

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: