不要ファイルの一括削除
よくある、不要なファイル削除用のコマンド。 空白が含まれることが多いので -print0 で渡す。 Linux系でもMacでもOK。 find ./ -name “.DS_Store” -prin […]
定期的にゴミファイルを消すcronの備忘録
find /home/hoge/tmp -name ‘*’ -mtime +7 -exec rm {} ; 1>/dev/null 2>&1
コマンドラインでの指定以下一括パーミッション変更
ここ数日めちゃくちゃ実行しそうなので、メモしておく。 ディレクトリ find . -type d -print | xargs chmod 755 ファイル find . -type f -print | xargs c […]