Linux solves disk occupation: /dev/vda1 occupies 100%

Problem scenario

1. In Linux, check the disk usage:

df -h

As shown below:
Insert picture description here

solve

View the file occupation in each directory:

du -sh *

Insert picture description here
General view: directories such as
/usr/local
/home
are usually caused by log logs. To clean up the log files, use:

rm -rf *.log

Guess you like

Origin blog.csdn.net/u010312671/article/details/108261917