Skip to content

Instantly share code, notes, and snippets.

@mizoR
Created June 25, 2014 05:40
Show Gist options
  • Save mizoR/e62388f260285fd4f5b5 to your computer and use it in GitHub Desktop.
Save mizoR/e62388f260285fd4f5b5 to your computer and use it in GitHub Desktop.
inode が 枯渇したとき

i-node を使用しているディレクトリを探す

$ find . -xdev -type f | cut -d "/" -f 2 | sort | uniq -c | sort -n

2日前のXMLファイルを削除する

$ find ./ -mtime +2 -name "*.xml" | xargs rm -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment