About the TMP folder in Linux

Source: Internet
Author: User
Tags tmp folder

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.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.