Find and chmod directories / files

root@host [~]# find . -type f -print0 | xargs -0i chmod 644 {}

root@host [~]# find . -type d -print0 | xargs -0i chmod 755 {}

Tags: , , ,

Leave a Reply