http://blog.csdn.net/ningxinghai/article/details/7342338
Linux's soft connection is equivalent to the window system shortcuts, such as our desktop QQ and so on.
A hard connection is equivalent to copying a file, but the difference is two file content synchronization . If you create a hard connection b for file A, if I modify the contents of a, the content in B will also be updated.
command to create a soft connection: ln-s source file Destination file
command to create a hard connection: ln source file Destination file
hard connections cannot be created across zones , such as the/home directory and the/ect directory is not a partition, a This file is now in the/home directory, and you want to create a hard connection to a file to the/ect directory is not possible.
Soft joins can be created across zones
Personal:
-rwxr--r-- 2 root root 1222 Apr 6 15:20 Login.txt
The 2 here refers to a file with two hard connections pointing to login.txt. "That is, the Login.txt has two copies of the files, the two files are synchronized with the source file, that is, the source file changes will be updated to the copy file"
drwxr--r--