mv overwrite doesn't free hard drive space
I have just overwritten an 11GB text file with a 10MB file using the mv command i.e...
file_a = 11GB
file_b = 10MB
mv file_b file_a
However no extra space has been freed up on the hard drive, guessing I should have used... rm file_a ...first before the move command but what's done is done!
Anyone know how that space can be released or if it happens at a particular time e.g. on restart etc? I haven't tried restarting yet as its on a live server so would prefer not to take down our site unless I know this will definitely work.