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

> From: adrian kok <adriankok2...@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 {} \;





_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Reply via email to