In Ubuntu,/tmp uses tmpfs to increase the processing speed and security of temporary files.
Source: Internet
Author: User
In Ubuntu,/tmp uses tmpfs to increase the processing speed of temporary files and increase security. 1. Problem background: www.2cto. comUbuntu version: 12.1064bit didn't actually consider using tmpfs from the perspective of improving the speed, but I needed to make/tmp safer. Once I mentioned U...
In Ubuntu,/tmp uses tmpfs to increase the processing speed of temporary files and increase the security. 1. Problem background: www.2cto.com Ubuntu version: 12.10 64bit didn't actually consider using tmpfs from the perspective of improving the speed, instead, I need to make/tmp safer. One blog post mentioned secure deletion of Ubuntu files (http://www.2cto.com/ OS /201209/153606.html), but could not
Solve the/tmp problem. Because when operating some documents with higher security levels, there will always be traces in/tmp (after temporary files are deleted ). Every time we use sfill in secure-delete to fill the file, it is still a little troublesome. The sfill method is to fill the disk or directory with random data as much as possible and then delete it automatically. this takes a long time. 2. the analysis solves the problem of accidental discovery on the Internet and the use of tmpfs to mount/tmp. In this way, the temporary data is stored in the memory, and the restart data is gone, so it meets my requirements. The method is simple. edit/etc/fstab to add a line and restart. Www.2cto.com 1 tmpfs/tmp tmpfs ULTS ults, noatime, mode = 1777, nosuid, size = 1024 M 0 0 here I divided the 1G memory, but don't worry that this is the maximum value. The memory consumption value depends on actual use. Run df-h to view the actual mounting and usage. 1df-h2Filesystem Size Used Avail Use % Mounted on3/dev/sda1 40G 9.9G 28G 27%/4 udev 2.9G 4.0 K 2.9G 1%/dev5tmpfs 1.0G 72 K 1.0G 1%/tmp6... currently, 72 kB is used, because/tmp may be used to process large temporary files, so it is best not to set too small.
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.