Tag: chmod コマンド
chmodで再帰的にファイルのパーミッションを変更するには、以下のようにします。 find ./ -type f -print | xargs chmod 644 特定のファイルのみ、の場合はこのようになります。 find ./ -name *.rhtml -type f -print | xargs chmod 644
$ find . -type f -exec chmod 644 \{\} \;
find /var/www/ -type d -exec chmod 755 {} \;