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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章