Set chmod a Folder or a file
1 2 |
chmod 755 [folder_name] chmod 755 [file_name] |
Set chmod all folders and files
1 |
chmod -R /path/to/folder |
If you really want to do is set the directories to 755 and either leave the files alone or set them to 644 for this you can use the find command e.g.
to change all the directories to 755:
1 |
find /path/to/folder -type d -exec chmod 755 {} ; |
to change all the files to 644:
1 |
find /path/to/folder -type f -exec chmod 644 {} ; |