In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Today, I will talk to you about how to link file types in Linux, many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.
Hard link
Hard links can only reference files in the same file system. It refers to the physical index of the file in the file system (also known as inode). When you move or delete the original file, the hard link is not broken because it refers to the physical data of the file rather than the location of the file in the file structure. Hard-linked files do not require the user to have access to the original file, nor will it display the location of the original file, which contributes to the security of the file. If the file you delete has a corresponding hard link, the file will remain until all references to it are deleted.
Symbolic links (soft links)
A symbolic link (soft link) is a pointer to the location of the file in the file system. Symbolic links can span file systems and even point to files in remote file systems. Symbolic links only indicate the location of the original file, and users need access to the location of the original file to use the link. If the original file is deleted, all symbolic links to it are broken. They point to a location that does not exist in the file system.
Both types of links can be created with the command ln. Ln creates hard links by default. Use the-s switch to create symbolic links.
After reading the above, do you have any further understanding of how to link file types in Linux? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
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: 236
*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.