TMPFS is a file system that has been enabled by default on more than 2.4 cores (ubuntu8.4 and later systems). First, let's experience, create a folder in your home file named Tmpfs, save some test files, and then code:
sudo mount tmpfs/home/your filename/tmpfs-t tmpfs
Well, you can experience TMPFS. Is it no different from the normal folder, except that the test files disappear? Because this folder is already pointing to memory, the original file is overwritten.
You see a similar: Tmpfs 1.9G 696K 1.9G butenafine/home/is your filename/tmpfs? Well, it's been successful, you can save some test files inside. Because it is read and write to memory, the file is lost after reboot, but it also protects the hard drive.
To load automatically before booting:
sudo gedit/etc/fstab
Add the following at the end:
# Mount Tmpfs in/tmp/(note) Tmpfs/tmp TMPFS Defaults 0 0
Save, close, and then use TMPFS the next time you start: Size defaults to 1/2 of memory
/TMP is the default temporary folder for Linux. Each open opportunity to automatically empty first, but also the system, a variety of software default buffer folder. TMPFS if it is mounted in a non-existent place, the system will not be able to enter the graphical interface. Therefore, it is safe to mount the folder where the system exists forever.
/tmp partition is my most often to extract, compile the directory (do not clean, convenient), with Tmpfs here toss, do not have to look at the hard drive lights crazy flash. In addition, PPS and other network resources can also link to/tmp folder ...
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.