Files
chill_notes/Linux/查看目录大小.md
2026-04-21 17:40:59 +08:00

5 lines
405 B
Markdown
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## du -sh /*
## 可以列出你整个VPS所有文件夹的大小。其中“/*”是控制分析哪个目录的,你根据上面的结果,然后灵活变化后面的路径就行了,例如:
## du -sh /usr/*
## 用这个命令来分析usr目录下的文件夹大小最后定位到大文件直接删除就行了。
> 来自 <[https://www.hack520.com/504.html](https://www.hack520.com/504.html)>