In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1. By default, without parameters, the ln command creates hard links, while the ln command with the-s parameter creates soft links.
2. The inode node number of the hard link file is the same as that of the source file, while the inode node number of the soft link file is different from that of the source file.
3. The ln command cannot create hard links to directories, but soft links can be created, and soft links to directories are often used.
4. Deleting the soft link file has no effect on the source file and the hard link file.
5. Deleting the hard-linked file of the file has no effect on the source file and the linked file.
Related learning video tutorials recommended: linux video tutorials
6. Deleting the source file of the linked file has no effect on the hard link, which will lead to the invalidation of the soft link (flashing white words on the red background) 7). At the same time, delete the source file and its hard link file, the whole file will be really deleted.
7. The snapshot function in many hardware devices uses the principle of hard link.
8. Soft links can span file systems, while hard links cannot cross file systems.
Attachment: there are two ways to create links as follows:
Ln-s source file link file # create soft link ln source file hard link file # create hard link
These are the details of the difference between hard links and soft links in linux. Please pay more attention to other related articles!
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.