Created
August 11, 2016 13:55
-
-
Save jice-lavocat/d8866efa4b0913e8b8eeeed2d052c3b2 to your computer and use it in GitHub Desktop.
Rend visibles les fichiers d'un dossier "visible" sur Unix (Centrale Marseille)
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
#!/bin/bash | |
find . -type f -exec chmod 644 {} \; # fichiers en général | |
find . -name ‘*.php’ -exec chmod 600 {} \; # tous les fichiers qui portent l’extension php | |
find . -type d -exec chmod 751 {} \; # tous les répertoires | |
chmod 755 visible # un répertoire visible de l’extérieur qui s’appelle ‘visible’ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment