LoginSignup
1
1

More than 5 years have passed since last update.

古いファイルを削除する

Posted at

/tmp 直下にある180日以上変更していないファイルを削除する。
細かいことはマニュアル参照。

delete_old_file.sh
find /tmp -maxdepth 1 -mindepth 1 -mtime +180 -exec rm {} \;
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1