0

Why df command doe not display the exact empty space?

Asked 3 years ago (Apr 08, 2021) in the field of Operating Systems by Naira

Hello, please help me about my recent issue. When I delete files from the server, the df command does not display the empty space properly, while I deleted the entire file. When I use the df command, it shows that about 99% of my hard drive space is full and my script can not store data in the file server. What should be done?


Answers


0
Answered 3 years ago (Apr 09, 2021) by Eldernode Staff

Deleting a filename usually does not delete a file. Some other processes may be running on that file and therefore can not delete them. To remove them completely, use the lsof command to check the processes associated with that file and restart or kill them. Use the following command to find out which processes are using a deleted file:

lsof +L1

We are by your side every step of the way

Think about developing your online business; We will protect it compassionately

We are by your side every step of the way

+8595670151

7 days a week, 24 hours a day