In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
There are two different categories of file links in Linux.
Symbolic links (also known as soft links)
Hard link
1, the size of the soft link file is different from the source file, the soft link file stores the soft link to the source file pointing relationship, so it is good to understand their different size, can be understood as a pointer.
2. The Inode number, size and last modification time of the hard link file are exactly the same, which can be understood as cp-p copied a source file and retained the attributes of the source file.
A hard link creates a separate file, and referencing the hard link file is the same as referencing the source file:
1. How to create hard links
Method 1: cp-l source file hard link file
Method 2: use ln (meaning link) to hard link the ln source file
By default, the ln command creates a hard-linked file
3. The difference between modifying the file, modifying the source file and the last modification time of the hard link file synchronously, while the last modification time of the soft link file remains the same. It is also fully explained here that the soft link stores only the location and information of the source file, while the hard link and the source file are the same file.
4. The difference between deleting files: delete hard-linked source files, hard-linked files are still available. Delete the source file of the soft connection file, the soft connection is not available
In linux system, an Inode number can correspond to multiple file names, the source file of the hard link file is deleted, only the mapping from the index node to the source file of the hard link file is deleted, the mapping from the index node to the hard link file still exists, and the index hard link file is still available.
Delete the source file of the soft connection file, because the soft connection stores the location and information of the source file, view the soft connection file, the source file has been deleted, so the soft connection is not available.
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.