Program does not release diskspace even I have deleted them
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Program does not release diskspace even I have deleted them
I run whole batch of simulations and taking a lot of diskspace (8Gbytes). I have deleted them after examine the results. However, the diskspace remained the same even though i have deleted the files (rm -rf *). Sound like the program does not release the diskspace (maybe in cache or virtual memory? ). It only release the diskspace after i exit completely the program.
Is there a way to ask the program to release the diskspace without exit the program?
Was the program that creates these log files still running when you removed the log files?
If so there the possibility that the program is still connected to the old log files (invisible for the user, but the removed files are still present). Restart the program to release the old log files.
This is normal with Linux. If a program opens a file, and the file is deleted while the file is open, the disk space is not free until the file is closed.
You can see this if you for example start playing a movie. Then you delete the file. The movie will continue as if nothing happened. When the movie is finished (or you stop it), the disk space becomes free and the file is gone.
So unless the program can close and reopen the files, you will need to exit it and start again.
I am not sure about which log file it is connected.
However, i use df -ah . to check the diskspace which does not link to the program. In other words, I did not use the program to check the diskspace but i did check in the terminal with df command.
I did close the result viewer of the program when checking diskspace, hence the program does not use the results or files anymore.
sounds like no alternative way besides exiting the program..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.