Created
January 24, 2018 07:30
-
-
Save bendasvadim/ef1073b22dd09315bcd8f4802589d2ef to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Смена прав только у директорий (рекурсивно) | |
$ find /path/to/base/dir -type d -exec chmod 755 {} + | |
или | |
$ chmod 755 $(find /path/to/base/dir -type d) | |
или | |
$ chmod 755 `find /path/to/base/dir -type d` | |
или | |
$ find /path/to/base/dir -type d -print0 | xargs -0 chmod 755 | |
Смена прав только у файлов (рекурсивно) | |
$ find /path/to/base/dir -type f -exec chmod 644 {} + | |
или | |
$ chmod 644 $(find /path/to/base/dir -type f) | |
или | |
$ chmod 0755 `find ./ -type f` | |
или | |
$ find /path/to/base/dir -type f -print0 | xargs -0 chmod 644 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment