Last active
December 4, 2019 12:15
-
-
Save donchan922/d83271ca8465d8f7c259dd77e0b53efe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ルートディレクトリ配下の30日以上前の.logファイルを検索する | |
$ find / -type f -name "*.log" -mtime +30 -exec ls -l {} \; | |
# ルートディレクトリ配下の30日以上前の.logファイルを削除する | |
$ find / -type f -name "*.log" -mtime +30 -exec rm {} \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment