Can someone please give me a recursive command that will go through a directory and make all normal files permission 644 and all sub directories 755?
I am really getting tired of doing this manually every time I have to install something on my host. I don't know enough BASH (Shell?) command to do this.
There is X option for that.
chmod a+X * -R
This will give execute bit only to directories, not files. To set 644, 755, respectively with one command, use:
chmod a=rX,u+w <files/dirs> -R
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With