[CentOS] directory and file permission help

Mon Feb 8 12:47:27 UTC 2010
Simon Billis <simon at houxou.com>

John Doe sent a missive on 2010-02-08:

> From: adrian kok <adriankok2000 at yahoo.com.hk>
>> I move a zip file from window to linux but all permission of folder
>> and files are kept in 700 How can I change it one time? I don't need
>> to change directory under directory to change as folder as 755 and
>> files as 644
> 
> You could use find -type X (X = 'd' for directories and 'f' for files)

Indeed, not forgetting that you can use -exec option with find to do the
actuall change to the files/dirs 

I.e. for directories within the zip

Bash# find ./ -type d -exec chmod 755 {} \;