How to solve the problem that the Linux system files have been deleted but the space has not been released

  
                

When you are working on a Linux system, you sometimes encounter problems with files being deleted but the space is not being released. What is the cause? How to solve it, the following small series will introduce you to the solution that the file is deleted but the space is not released.

1, error phenomenon

The operation and maintenance monitoring system sent a notice, report that a server space is full, log in to the server to view, the root partition does not have space, as shown below: Br>

Here we first explain some of the server's deletion strategy. Since Linux does not have the Recycle Bin function, all the files to be deleted on our online server will be moved to the system /tmp directory first, and then /tmp will be cleared regularly. The data under the directory. This strategy itself has no problem, but it is found that the system partition of this server does not have a separate /tmp partition, so the data under /tmp actually takes up the space of the root partition. Now that you have found the problem, delete some big data in the /tmp directory. Execute the following command to check the three largest data files under /tmp, as shown below:

[root@localhost~ ]# Du -s /tmp/*

Copyright © Windows knowledge All Rights Reserved