I just have a problem with "rm" command, it cannot return space?

Discussion in 'General' started by lexcomputer, Sep 23, 2006.

  1. lexcomputer

    lexcomputer New Member

    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?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Please check with the commad "ls -la" that the file id really deleted.
     
  3. lexcomputer

    lexcomputer New Member

    Sorry, I have made a mistake posting question :confused:

    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?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Please answer my question above. Does the command "ls -la" shows the file or not?
     
  5. lexcomputer

    lexcomputer New Member

    command "ls -la" didn't show the deleted file.

    thank you very much, for your help :)
     
  6. falko

    falko Super Moderator Howtoforge Staff

    Then it's gone. Does
    Code:
    df -h
    still show the wrong results?
     
  7. lexcomputer

    lexcomputer New Member

    That's right. "df -h" shows the wrong result.

    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.
     
  8. falko

    falko Super Moderator Howtoforge Staff

    Can you post the outputs of both commands?
     

Share This Page