1. Soft connection
Description: A shortcut similar to win. The soft connection cannot be accessed after the source file is deleted. A soft connection is a different inode than the source file. In general, the newly installed program file name is long and inconvenient to remember, but in the middle of Linux it is recommended to change the source file name. As a result, the newly installed program will create a soft connection for it, and the files and directories can create a soft connection.
Role: To facilitate the use of new programs, after installing a new program will generally create a soft connection.
Case: Create a hard-link file oldboy2
Ln-s Oldboy oldboy2//Create a hard-link file oldboy2
2. Hard Links
Description: A hard connection is connected through the inode, and the different files of the same inode are called hard-link files. Content is automatically synced to other hard-linked files when content is added to a file. The original file is deleted and the file entity is not lost. Only files can create hard links
Role: Hard links can be used to protect important static files from accidental deletion of files. The connection type is a normal file.
Case: Create a hard-link file oldboy2
ln source File Connection file name
ln Oldboy oldboy2//Create a hard-link file oldboy2
This article is from the "11104762" blog, please be sure to keep this source http://11114762.blog.51cto.com/11104762/1828093
Ln-s Soft Connect, ln hard link