Establish a soft connection: ln -s original path target path
Principle diagram:
Features:
1. Equivalent to the shortcut in win
2. Delete the linked file, the source file is not affected
3. Delete the source file, the link file is invalid
4. Modify the source file \link file, the content changes
5. The soft link points to the file name
6. Soft connections can span partitions
Establish a hard link: ln original path target path
Principle diagram:
----------------------------------------------------------------
A partition is a file system
Soft links can span partitions, but hard links cannot.
Each folder has hidden files . Hard link to current directory .. Hard link to previous directory