If you want to change permissions of folder or directories to 755 and either leave the files alone or set them to 644. You can use the find
command. For example:
To change all the directories to 755 (drwxr-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 {} \;
YouTube channel: https://www.youtube.com/@trainbrain007