linux To change all the directories to 755

July 6, 2021 . 1 MIN READ

To change all the directories to 755 (-rwxr-xr-x):

find /opt/lampp/htdocs -type d -exec chmod 755 {} \;

To change all the files to 644 (-rw-r–r–):

find /opt/lampp/htdocs -type f -exec chmod 644 {} \;

Leave a Reply

Your email address will not be published. Required fields are marked *