What is the difference between symbolic link and hard link?

来源:互联网 发布:cms集中管理软件下载 编辑:程序博客网 时间:2024/06/04 19:16
 

A symbolic link is a special file that only contains a filename. It is created using. Remove the link will also remove the original file.

A hard link points to the file itself. The operating system keeps track of how many hard links point to a file. Remove the hard link will just reduce the link count.