Link file: Access different paths of the same file;
Hard Link: Multiple file paths pointing to the same inode;
Characteristics:
(1) The directory does not support hard links;
(2) Hard link cannot cross file system;
(3) Creating a hard link increases the inode reference count;
Create:
ln src link_file
Symbolic Link: Another file path pointing to a file path;
Characteristics:
(1) Symbolic links and documents are two separate files, each with their own inode; creating symbolic links to the original file does not increase the reference count;
(2) Support to create symbolic links to the directory, can cross the file system;
(3) Delete the symbolic link file does not affect the original file, but delete the original file, the path specified by the symbol does not exist, this will become invalid link;
Note: The size of the symbolic link file is the number of bytes of the path string of its specified file;
Create:
Ln-s src link_file
-v:verbose
Linux Base link File