System Management: temporary file TMP cleanup in Linux
Source: Internet
Author: User
System Management: 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.
We recommend that you use the tmpwatch command for cleanup. Tmpwatch is described as follows:
Name: tmpwatch
Version: 2.8.4
Release No.: 5
GROUP: System Environment/basic source package: tmpwatch-2.8.4-5.src.rpm
Size: 13273 license type: GPL
Abstract: A tool used to delete a file based on the time when the file is accessed.
Introduction:
The tmpwatch tool recursively searches the specified directory and deletes files that are not accessed within the specified period of time. Tmpwatch is generally used to clean directories (for example,/tmp) that are used to temporarily resident files. tmpwatch ignores symbolic links. It does not switch to the file system and only deletes empty directories and regular files.
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.