We have a web server which has %100 disk usage on some partitions because of the webserver logs.
When I delete some of the log files with rm command to free up disk space, nothing changed on output of the df command.
But, if I use file truncate pattern like
: > log_file_name, specified log file is truncated and disk usage percentages in output of df command updated as expected.
Why disk free, disk usage numbers not updated after removing of files?