Created
February 20, 2017 16:40
-
-
Save soldair/7f2dd69405fede92ccaac726cbe872c3 to your computer and use it in GitHub Desktop.
idnoe debug commands
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
# list inode use for / | |
df -Ti / | |
# find dirs with lots of files | |
sudo find / -xdev -printf '%h\n' | sort -T /mnt/tmp | uniq -c | sort -T /mnt/tmp/ -k 1 -n | |
# run apt autoremove with a different cache dir | |
sudo apt-get -o dir::cache::archives="/mnt/tmp" autoremove -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment