Differences between Linux soft links and hard links

Source: Internet
Author: User
A "hard link" is another name for an existing file; the link and
Original are indistinguishable. Technically speaking, they share
Same inode, And the inode contains all the information about
File -- indeed, it is not incorrect to say that the inode _ is _ the file.
On all existing implementations, you cannot make a hard link to
Directory, and hard links cannot cross file system boundaries. (These
Restrictions are not mandated by POSIX, however .)

"Symbolic Links" ("symlinks" for short), on the other hand, are a
special file type (which not all kernels support: system V Release 3
(and older) systems lack symlinks) in which the link file actually
refers to a different file, by name. when most operations (opening,
reading, writing, and so on) are passed the symbolic link file, the
kernel automatically "dereferences" the link and operates on the target
of the link. but some operations (e.g ., removing) work on the Link
file itself, rather than on its target. * Note Symbolic Links:
(libc) symbolic links.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.