So you’ve unpacked a folder into a linux based system and want to set your files to 644 and directories to 755. There are many solutions on stackoverflow but the most correct and flawless solution for this task is found below.
[code]chmod -R a=r,u+w,a+X /folder[/code]