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