Summary: symlinks (symbolic links) refer to file names, hardlinks (hard links) refer to meta-data (metadata), and reflinks (reference links) directly reference data.
The three different link file types on Linux point to three different components of the file. That is, the file name (stored in the directory), the metadata (stored in the inode), and the data block (the data itself). The following shows the relationship between files and various types of linked files.
name2 – symlink –> name1 – hardlink –> inode1 – reflink —> dataname3 – hardlink -///name4 – hardlink –> inode2 —reflink - /
Speak less, then use the actual application to analyze the various link types and how to use them. First we create a file. Linux has a command to create in N, such as echo > file ^_^.
1. Symbolic links
cp –symbolic-link name1 name2
Symbolic links are similar to shortcuts under Windows, an alias.
Second, hard link
cp –link name1 name3
In fact, all ordinary files under Linux will be hard-linked to an inode. This means that each time you create a hard link, one more file points to the same inode. In fact, this is very useful for system backup ^_^.
Three, reference links
cp –reflink name1 name4
To be honest, this author has not used it, similar to hard links. It only takes up less storage space.
In software development, tasks often have to go to sleep because some conditions are not met, and th
A flash drive is one of the most useful tools a person can have. With it, you can back up critical d
1. Get root privileges without logging in. If you dont set the GRUB password, we can use the easiest
With the advantage of strong stability, embedded DVR is increasingly accepted by the security indust
NetBeans integrated development environment under CentOS
How to install directadmin on VPS
Detailed explanation: MD5 encryption method for Linux system GRUB
Linux available disk capacity adjustment reserved space
The slow mail problem of sendmail under Linux host
CentOS Linux builds .NET environment
Linux shell string operation (length, find, replace) detailed
The reason why the driver of the single-chip microcomputer should be set to low level is
How to solve the problem that the Linux operating system can't find the network card
The difference between basic accessories and SkyDrive accessories
Win8 screen brightness can not be adjusted to deal with
Win10 preview version 9901 how to open Microsoft Xiaona Cortana?
The New York Times launches the Windows 10 UWP version of the word-guessing game application
How to restore the IE icon to the desktop after the Win8/8.1 system is installed?
Win10 graphics card driver how to update win10 graphics driver update step
How to remove redundant useless wireless network connection in Win10 system
How to improve the operating efficiency of the windos7 system?