开发者

how to set permissions of all the folders and all the files in as few steps as possible CHMOD

I am trying to set permissions of all of my folders to 775

and all the files (documents) to 644 There are many MANY files and Folders. All of those files and folders are contained in a single Folder.

I was wondering if there was a way 开发者_运维技巧to do it quickly!!

Any help would be really appreciated!


find somedir/ \( -type d -exec chmod 0775 {} + -true \) -o \( -exec chmod 0644 {} + \)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜