Link file

Hard link:

  1. as a real file in os, the as same size as origin file
  2. any modifition sync to origin file
  3. if origin file was deleted does not take effect to hard link file

Create hark link:

ln <source_file> <link>

Symbolic link:

A shadow of origin file, represents origin file but does not occupies space

Create hard link:

ln -s <source_file> <link>

Shortcuts(windows):

A real file, like a json file, set a entry of an application or directory, does not represents origin file

posted @ 2021-12-29 15:46  oaksharks  阅读(40)  评论(0编辑  收藏  举报