Skip to content

Instantly share code, notes, and snippets.

@soldair
Created February 20, 2017 16:40
Show Gist options
  • Save soldair/7f2dd69405fede92ccaac726cbe872c3 to your computer and use it in GitHub Desktop.
Save soldair/7f2dd69405fede92ccaac726cbe872c3 to your computer and use it in GitHub Desktop.
idnoe debug commands
# 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