Skip to content

Instantly share code, notes, and snippets.

@jice-lavocat
Created August 11, 2016 13:55
Show Gist options
  • Save jice-lavocat/d8866efa4b0913e8b8eeeed2d052c3b2 to your computer and use it in GitHub Desktop.
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)
#!/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