Get the App
SLTechnology News&Howtos  ›  Servers  › 

How does linux view processes that have deleted space but have not been released

Shulou Source: shulou.com Published: 2022-06-01 12:42:13 10月04日 Update

This article mainly explains the "linux how to view the deleted space but did not release the process", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "linux how to view the deleted space but did not release the process" it!

Background: rm deleted files or folders, and when df checked it, it found that no disk space was released.

Execute the command lsof-n | grep deleted.

[root@localhost ~] # lsof-n | grep deleted # found several deleted but no free space.

[root@localhost] # kill-9 4291

Then take a look at df and find that the space is reduced.

[root@localhost ~] # df-lh

Thank you for your reading, the above is the "linux how to view the deleted space but did not release the process" of the content, after the study of this article, I believe you have a deeper understanding of how linux view the deleted space but did not release the process, the specific use of the situation also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Space process learning content files commands that is ideas situations folders articles more knowledge knowledge points disks articles background follow questions practice Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology macOS Redmi Huawei Shulou Tech Info