linux—ln

1. Soft connection: Do not delete the source files, delete the source file causes the linked file is not found, a red flashing.

2. Hard link: the source file is deleted, the link files can be opened normally, the same file inode numbers before and after the link, hard link can only link for the file do not ,, for the directory.

3. make soft link to a file:

ln -s file name (path) linked file (path)

 

 

4. Do a soft link to the directory:

 

 

5. make a hard link to a file:

 

 

Guess you like

Origin www.cnblogs.com/yuuuukii/p/12013038.html