View Full Version : I just have a problem with "rm" command, it cannot return space?
lexcomputer
23rd September 2006, 04:26
I use linux Fedora Core4. Normally, rm command will delete file(s) and then give me back a space. Yesterday, I deleted file "/home/www/web3/log/error.log" which was 17GB of its size. After deleting, the available size on my server (viewed by using "du -kh" ) was still the same as before deletion. Could anyone help me to solve this, and how can I do?
till
23rd September 2006, 15:02
Please check with the commad "ls -la" that the file id really deleted.
lexcomputer
24th September 2006, 15:14
du -kh <-- this return the correct free space (current + deleted file).
BUT
df -h <--- this return the same amount of disk space before and after deletion.
How can I really free my space using "rm" command?
till
24th September 2006, 20:12
Please answer my question above. Does the command "ls -la" shows the file or not?
lexcomputer
25th September 2006, 19:13
thank you very much, for your help :)
falko
26th September 2006, 18:58
Then it's gone. Does df -h still show the wrong results?
lexcomputer
30th September 2006, 05:08
Anyway "du -kh" show the correct. But the problem is, ISPConfig also shows the result which same as "df -h". And when there is 100% usage, user cannot receive email or upload file.
Upload via FTP program is OK.
falko
1st October 2006, 13:59
du -kh <-- this return the correct free space (current + deleted file).
BUT
df -h <--- this return the same amount of disk space before and after deletion.
Can you post the outputs of both commands?
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.