一括でファイル、ディレクトリのパーミッションを変更するコマンドです。
ファイルとディレクトリのパーミッションを分ける際に使用します。
# 現在のディレクトリ以下のファイルのみを [664] に変更
find . -type f -print | xargs chmod 664
# 現在のディレクトリ以下のディレクトリのみを [755] に変更
find . -type d -print | xargs chmod 775
一括でファイル、ディレクトリのパーミッションを変更するコマンドです。
ファイルとディレクトリのパーミッションを分ける際に使用します。
# 現在のディレクトリ以下のファイルのみを [664] に変更
find . -type f -print | xargs chmod 664
# 現在のディレクトリ以下のディレクトリのみを [755] に変更
find . -type d -print | xargs chmod 775
Register as a new user and use Qiita more conveniently