Logged in to the company server today, and saw that the disk became popular, and panicked a lot
Then log in to the server to check the cause
df -h
Found that the directory /dev/vda1 directory has a total of 50G, and 44G has been used. It is suspected that the large file is in it
Since it is a mounted directory, the directory cannot be entered, and only the proportion of detailed content in the root directory can be analyzed
du -h --max-depth=1 /
It is found that the /www directory takes up the most space, enter this directory and analyze again, the disk is accurate to the www directory and the depth is one directory
du -h --max-depth=1 /www/
Display the details and size of all subordinate files, select the first 11 files
ls -lahS | head -11
View the content of the located file
delete the file
rm -rvf 文件名字
The final comparison dropped from 92% to 64%
The page is also back to normal