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

原文地址:https://www.cnblogs.com/oaks/p/15745262.html