パーミッション変更の小技
ディレクトリーだけ,ファイルだけパーミッションを変更したい場合
- Directory
find /path/dir -type d -exec chmod 755 {} +
- File
find /path/dir -type f -exec chmod 644 {} +
ディレクトリーだけ,ファイルだけパーミッションを変更したい場合
find /path/dir -type d -exec chmod 755 {} +
find /path/dir -type f -exec chmod 644 {} +