LoginSignup
0
0

More than 5 years have passed since last update.

inode 消費数を調べる

Posted at

カレントディレクトリ直下のディレクトリを対象に inode 消費数を調べる

for DIR in $(ls -lat | grep "^d" | grep -v "\." | awk '{print $9}'); do echo "$(find ./${DIR} -true | wc -l) $(pwd)/${DIR}"; done | sort -n

たとえば /home 直下だと、こんな感じ

root@server:/home# for DIR in $(ls -lat | grep "^d" | grep -v "\." | awk '{print $9}'); do echo "$(find ./${DIR} -true | wc -l) $(pwd)/${DIR}"; done | sort -n
5 /home/hoge
6 /home/piyo
8 /home/poyo
9 /home/fuga

おしまい

0
0
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
0
0