- 安装
sudo apt-get install ncdu
- 运行ncdu就可以查看各目录所占空间
- (注意:如果文件已经删除了,但是还有残留的进程引用它,df看到的空间使用量并没有减去那些已经删除的文件, 这时需要停止相应的进程)
碰到这种情况就需要运行以下命令:
lsof / | grep deleted
- 相关文章参考:https://www.digitalocean.com/community/questions/cannot-find-what-is-filling-up-disk-space-dev-vda1-is-100-full
Last active
November 12, 2015 13:04
-
-
Save chensoren/9018394cb174f3a00412 to your computer and use it in GitHub Desktop.
Digitalocean上Debian系统删除垃圾文件后磁盘空间仍然占100%
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment