How to quickly find the files taking up the most space?

Analysis & Answers

Use the find command to find files larger than the specified size:

当前目录大于500M文件
find ./ -size +500M

用户目录大于500M文件
find ~ -type f -size +500M

根目录大于500M文件
find / -type f -size +500M
复制代码

Let files be sorted by size

you -h * | black -n

Meow Interview Assistant: A one-stop solution to interview questions. You can search the WeChat applet [Meow Interview Assistant]  or follow [Meow Interview Assistant] -> Interview Assistant to  answer questions for free. If you have good interview knowledge or skills, look forward to your sharing!

Guess you like

Origin blog.csdn.net/jjclove/article/details/127403526