Here is the quick command to do this:
$ sudo find /path/to/dir -type d -print0 | sudo xargs -0 chmod 775
$ sudo find /path/to/dir -type f -print0 | sudo xargs -0 chmod 664
Credit:
https://tecadmin.net/set-all-directories-to-755-and-all-files-to-644/
Top comments (0)