Temporary File TMP cleanup in Linux-Linux general technology-Linux technology and application information. For details, refer to the following section. A temporary file (under/tmp) is generated after the system has been used for a long time and needs to be cleared. However, rm-rf is not recommended for cleanup. In this way, the program may be frozen.
After sudo df-l, the/tmp status is displayed as overflow.
We recommend that you use the tmpwatch command for cleanup.
Even if sudo apt-get tmpwatch fails on the machine, it finds that the tmpreaper command, after installation, feels similar to tmpwatch, but I still cannot use it. Rm-rf * is still used. This method is not recommended.
After deleting a lot of files and finding sudo df-l, the/tmp overflow is also displayed. Check the information and you need to restart the system. Because there is a file that records the information about the machine startup, this file has not been changed, so even after deleting many tmp files, it still indicates overflow.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.