Linux server: a "soft" approach to solving Linux disk space full

  
                  

Due to the unreasonable design when installing the system, some partitions are too small, and the network files are faulty, causing the log files to grow rapidly. Other reasons may be that the disk space is full, the disk cannot be read and written, and the application cannot be executed. Wait. Here are a few tricks for you (using the /home space as an example):

1. Regularly scan important file systems and compare them to analyze those files that are frequently read and written

#ls –lR /home >;files.txt

#diff filesold.txt files.txt< Br>

By analyzing the growth of the prediction space, you can also consider compressing files that are not frequently read and written to reduce the space.

2. View the inodes of the file system full of space

#df – i /home

If there are a large number of inodes available, it means that large files take up space, otherwise it is possible that a large number of small files take up space.

3. Find the directory that takes up a lot of space

View the space occupied by /home

#du –hs /home

View the space occupied by /home for more than 1000m

#du

Copyright © Windows knowledge All Rights Reserved