Changing permissions on Files or Directories only in Linux

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 {} \;