1: Pre-knowledge
-S is the meaning of the Code name (symbolic). Here are two points to note: first, the LN command will maintain the synchronization of each linked file, that is, no matter where you change, the other files will change the same; second, ln links and soft links and hard links two, soft link is ln–s * *, It will only generate a mirror image of the file in the location you selected, not disk space, hard link ln * *, no parameter-s, it will generate a file in your chosen location with the same size as the source file, whether it is a soft link or a hard link, the file will remain in sync. If you use LS to look at a directory, found that there is a file at the end of a @ symbol, that is, a file generated with the LN command, with the ls–l command to see the link shown in the path. Instruction Detail Instruction Name: LN usage rights: All user usage: ln [options] Source dist, where option is in the format: [-BDFINSVF] [-S backup-suffix] [-v {num Bered,existing,simple}] [--help] [--version] [--] Description: Linux/unix file system, there is a so-called link, we can consider it as the alias of the file, and the link can be divided into two kinds: hard link) with a soft link (symbolic link), a hard link means that a file can have multiple names, whereas a soft link creates a special file with the content of the file pointing to the location of another file. Hard links exist in the same file system, while soft links can span different file systems. LN Source Dist is the generation of a link (dist) to the source, and the use of a hard or soft link is determined by the parameter. Whether a hard link or a soft link will not copy the original file, it will only occupy a very small amount of disk space. -F: The link will be the same file with the dist Delete-D: Allow the System Manager to hard-link their own directory-I: When deleting the file with the dist file with the first query-N: In the soft link, the dist as a generic file-s: Soft Link (symb Olic link)-V: Displays its file name before the link-B: Files that will be overwritten or deleted at the end of the link are backed up by the-s SUFFIX: Add the backed up files to the SUFFIX-V method: Specify how the Backup is--help: Show secondary Help notes --version: Display version
"Self-Test understanding:"
The Ln-s source Dist Source is the origin file (clip) location, and Dist is the location of the soft link. The result is a soft connection dist->source; (hello.) in the Dist location. /downloads/document.txt*) If source uses a relative address (preferably with an absolute address), note that the source is the address relative to the dist location, and if Dist cannot find the source, the soft connection appears in red.
Ubuntu folder to establish a soft link method