Adding execute permissions recursively only to folders

Something neat I found that I never knew about.  I suppose I could have just read the man pages…  The below line will add user permissions of rwx and group/other permissions of read and execute recursively, only adding execute permissions to the folders and not files.

chmod -R u=rwX,go=rX .


Advertisement
This entry was posted in Uncategorized. Bookmark the permalink.

1 Response to Adding execute permissions recursively only to folders

  1. Ahhh…the joys of chmod

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Connecting to %s