How to make all files under a directory world readable on linux? [closed]

Posted on Mar 11, 2023

Question

I want to make all files (and directories) under a certain directory world readable without having to chmod each file on its own. it would be great if there is an option to also do this recursively (look under folders and chmod 666 all files under it)

Answer

man 3 chmod contains the information you are looking for.

chmod -R +r directory

the -R option tells chmod to operate recursively.