Changing permissions only in directories

$ chmod -R u+rX

Changes recursively the write permissions only in the directories. It has been very useful to me lately and I have to admit I did not know this till some weeks ago.

1 Comment

  • On 09.09.11 pl4yer0ne said:

    Actually the capital X sets the execute/search permission for files OR directories that already have the execute bit set at least once.

    From the man: “execute/search only if the file is a directory or already has execute permission for some user (X)”

speak up

Add your comment below, or trackback from your own site.

Subscribe to these comments.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*Required Fields