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