The TMP folder in Linux is like the Temporary Folder of TMP temporary file.
(1) Since it is a temporary folder, the content in this folder will be cleared. Why does the content in this folder still exist after I restart my computer? For details, refer to this article http://www.opsers.org/base/clean-up-on-the-linux-system-tmp-folder-you-may-want-to-know.html
That is, we can use/Etc/cron. daily/tmpwatchIn this file, check when the content in the TMP folder is cleared and how long it takes.
(2) Here I also want to talk about the technique of using TMP folders. As a beginner, I often want to experiment with some commands by using some files in Linux, for example, VI/etc/passwd test VI's dd deletion YY copy P paste function may cause damage to the original file due to misoperations, which is not expected to happen.
Solution: copy the file to TMP through CP/etc/passwd/tmp and test some commands on the/tmp/passwd file.