Change permission of Folders and file separately in linux, ubuntu
Often you come across a situation when you need to change the permission of all folder in a directory not file. if you use chmod with -R will change the permission of all folder and files. and in same way you need to change the permission of files only inside a files not folders inside that folder.
Change only folder permission
user@server1 [~/public_html/sites/all]# find -type d -exec chmod 755 {} \;