Changing permissions on Files or Directories only in Linux

06 Jan 2009
Posted by editor

To change file permissions to 644 use ...

# find . -type f -exec chmod 644 {} \;

To change directory permissions to 755 use ...

# find . -type d -exec chmod 775 {} \;
Tags: