Skip to content

Instantly share code, notes, and snippets.

@unoemon
Last active October 20, 2022 03:29
Show Gist options
  • Save unoemon/b6c0a1ceda89895750839aa313c8ec2a to your computer and use it in GitHub Desktop.
Save unoemon/b6c0a1ceda89895750839aa313c8ec2a to your computer and use it in GitHub Desktop.
Linuxでディスク容量はあるのに容量不足エラーが出る場合の対処法 ref: http://qiita.com/unoemon/items/03a49f303176ad8e4035
# ls -ld /tmp
dr-xr-xr-x. 11 root root 4096 Aug 21 04:08 /tmp
# chmod 1777 /tmp
# ls -ld /tmp
drwxrwxrwt 3 root root 4096 Aug 21 04:08 /tmp
# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/xvda1 8123812 4815712 3207852 61% /
tmpfs 508628 0 508628 0% /dev/shm
# df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/xvda1 6406144 6406144 0 100% /
tmpfs 127157 1 127156 1% /dev/shm
# for i in /*; do echo $i; find $i |wc -l; done
# echo "==== `pwd` ====" ; for i in `ls -1`;do echo -n "## $i ### " ; echo "(`find ./$i -type f |wc -l`)" ;done | sort -r
==== /var ====
/foo
1
/piyo
2
/hoge
6370020
# rm -rdf /hoge/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment