TECHIES WORLD

For Techs.... Techniques.... Technologies....

CpanelLinux

Disk Space Not Updating in Linux

Sometimes df –h command not updating the actual space details even after deleting files or folders

To solve this issue we need to follow the below steps.

Run the command,

# lsof | grep deleted

This will show the list of files that are deleted but still in use by a running process.

Kill the listed processes using the command,

# kill -9 pid

Here we need to replace the pid with the listed process ids.

Then verify the disk space again df command

# df -h

Leave a Reply