In-depth introduction to the function of the Windows7 system folder

  

Many users don't care after installing the system. In fact, there are a lot of things that you should pay attention to in the system, such as the system folder. Everyone can learn more about the function of this file. If you install the most popular Microsoft Windows 7 operating system now, will you feel that the winsxs folder under Microsoft Windows 7 operating system is huge and scary, some people install X to say that Windows 7 operating system takes up space, this article is for you to explain.

About the recent new Microsoft security, stable and well-known operating system

We know that the quickest way to see how big a directory is is to look at the properties of the Explorer folder, but What I am saying today is: If you use this method to look at the directory of the Windows Vista /Windows 7 system, you will be deceived by your eyes, because Microsoft students use NTFS file system extensively in Windows Vista/Windows 7. One of the features: Hard Link to implement the WinSxS mechanism!

People who have used it know that to install Windows Vista /Windows 7 system, the system partition must be NTFS file system. The reasons are as follows:

Required for system file protection

Various security protection mechanisms, such as MIC required

WinSxS required

…&hellip ;

About the last point of WinSxS, so NTFS is a requirement for Windows Vista /Windows 7 systems, because the hard link mechanism can only be achieved on the NTFS file system, and the optimized Windows directory can be achieved. Take up the space of disk space.

Hard links about Microsoft systems

What is a hard link? Simply put, it is a special shortcut for files, but the implementation of this shortcut and general shortcuts The way is different.

Hard links are one of the unique properties of the NTFS file system. Under Linux, there are similar mechanisms. Hard links are available at the file level of the same volume, and hard links are not cross-volume.

Hard Links, System Property Tests

Windows Vista /Windows 7 comes with the command to create a hard link: mklink.exe, with this command, we can create a hard link to the specified file:

The following command will establish a hard connection between link.txt and source.txt

C:\\Users\\hoii\\Desktop"mklink /h link.txt gb.txt

Created a hard link for link.txt "===" gb.txt

Note the above example: link.txt is a non-existent file, but when the mklink command is executed Later, the link.txt file will be created. In fact, link.txt is a fake file, which is a mapping to the gb.txt file at the file system level, and link.txt does not occupy hard disk space.

About the occupation of hard disk space, you can test this:

1, divide the hard disk into a new partition, the space is only 2GB

2, in the test directory of this partition Created a new 1.9GB file, the remaining space is 0.1GB

3. Use the mklink command to create a hard connection for this 1.9GB file.

4, check this partition The remaining space is still 0.1GB, but if you use the resource manager to look at the properties of the test directory, you will find 2 files, the total size is 3.8GB (the entire partition is only 2GB, can accommodate 3.8GB files? Obviously impossible ))

Or for the above example, if we delete the original file gb.txt, the link.txt file will continue to exist, and the content is the source.txt file content. In other words, we delete gb.txt, and actually delete only this connection relationship, the file itself is still not operated.

Copyright © Windows knowledge All Rights Reserved