In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article is about whether the tmp directory in linux can be deleted. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
In linux, the tmp directory can be deleted; this directory is used to store temporary files. By default, the directory will clean up files that are not used for a specified number of days, and the system restart will empty the directory. By default, the "/ tmp" directory will clean up files that have not been used for 10 days, and the "/ var/tmp" directory will clean up files that have not been used for 30 days by default.
The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
Can I delete the tmp directory in linux?
It can be deleted. / tmp is a temporary folder under linux.
However, it is generally not necessary to delete it, because in the case of redhat, the default time limit for the system to automatically clean up the / tmp folder is 30 days. Files under / tmp that have not been accessed for 30 days will be automatically deleted by the system.
Linux has two known temporary directories: / tmp and / var/tmp, which are used by users to store temporary files and are often used by read-write users to store temporary data.
There is no essential difference between the two directories, the most fundamental difference is that the system is inconsistent with the default time configuration for file cleanup.
The / tmp directory cleans up files that have not been used for 10 days by default, and the system restart will empty the directory.
The / var/tmp directory cleans up files that have not been used for 30 days by default
Thank you for reading! This is the end of the article on "whether the tmp directory in linux can be deleted". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.