Linux Soft Connect and hard Connect

Source: Internet
Author: User

Linux Soft Connect and hard connect
For a file, there is a unique index point corresponding to it, and for an index contact number, you can have multiple file names corresponding to it. Therefore, the same file on the disk can access the file through a different path. Note that under Linux everything is file, directory, new HDD ... Can look at the file to deal with it.
A soft connection (symbolic link) is also called a symbolic connection, connected with a soft connection and a hard link. Symbolic connections are equivalent to shortcuts under Windows. A hard connection can be considered a different name for the same file.
Not able to establish a hard connection to the directory, we often use or soft connection is more.

eg
Ln-s Source Dist # establishing a soft connection
ln Source Dist # to establish a hard connection

What difference do they have? Last time also good to see, as if the structure of the file system has a certain relationship, not too much specific study next time to see clearly plus.

----------------------
A soft link is actually just a piece of text, which includes the name of the file it points to, and the system sees the soft link to jump to the corresponding file location for processing; instead, a hard join opens a new folder entry for the file, and the hard link and the original name of the file are affirmative, In Linux it seems that they are equivalent. For this reason, a hard link cannot connect files on two different file systems.

Linux Soft Connect and hard Connect

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.