What are the specific differences between Linux soft link and hard link?

Alibaba cloud Q & A 2022-02-13 06:32:53 阅读数:790

specific differences linux soft link

Linux What is the specific difference between soft link and hard link ?

Take the answer 1:

Under the actual situation , Basically using soft links . But to summarize , There are three differences :

Hard links cannot cross partitions , Software chains can span partitions .

Hard links point to a inode node , And soft link is to create a new inode node .

Delete hard link files , The original file will not be deleted , Delete soft link file , Will delete the original file .

copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130632516903.html