Skip to content

Instantly share code, notes, and snippets.

@Arakaki
Last active December 16, 2015 03:29
Show Gist options
  • Save Arakaki/5370669 to your computer and use it in GitHub Desktop.
Save Arakaki/5370669 to your computer and use it in GitHub Desktop.
特定条件のファイルの権限を変更する

hoge_dir以下のパーミッションが644のファイルを666に変更する

find ./hoge_dir/ -perm 644 -exec chmod 666 {} ;

※{}はfindで検索されたファイル名が入る

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment