To make all future files world-readable by default, add this line to ~/.bashrc
:
umask 022
Then, to make everything under ~/foo
world-readable:
source ~/.bashrc
cd ~/foo
find . -type f -exec chmod a+r {} \;
find . -type d -exec chmod a+x {} \;
To make all future files world-readable by default, add this line to ~/.bashrc
:
umask 022
Then, to make everything under ~/foo
world-readable:
source ~/.bashrc
cd ~/foo
find . -type f -exec chmod a+r {} \;
find . -type d -exec chmod a+x {} \;