仅递归更改文件/文件夹的文件权限[*nix]
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了仅递归更改文件/文件夹的文件权限[*nix]相关的知识,希望对你有一定的参考价值。
ProblemYou want to recursively change all of the file permissions only on folders & subfolders in a directory, but not the files (or vice-versa: you want to change the permissions on files only, not folders).
# This command will recursively search your current directory and chmod all directories & sub-directories only: find . -type d -exec chmod 755 {} ; # The following command will chmod all files only (ignoring the directories): find . -type f -exec chmod 644 {} ;
以上是关于仅递归更改文件/文件夹的文件权限[*nix]的主要内容,如果未能解决你的问题,请参考以下文章