DEV Community

Zen Oh
Zen Oh

Posted on

Linux How To Set All Dir to 775 and All Files to 664

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
Enter fullscreen mode Exit fullscreen mode

Credit:
https://tecadmin.net/set-all-directories-to-755-and-all-files-to-644/

Top comments (0)