If you use this option, hard links might show up with a dark blue background, and symlinks with cyan text, as illustrated in Figure 1.
如果您使用该选项,硬链接可能会以深蓝色背景显示,符号链接带有青色文本,如图1所示。
The references are called hard links.
这些引用被称为硬链接。
The next field is a number that tells us the number of hard links to the file.
下一个字段是一个数字,告诉我们文件的硬链接的数量。
The listings show the directory’s four entries (hard links): ., .., bin and foo.
这个列表显示当前目录下的4个目录项(硬链接):.、..、bin和foo。
The -s option forces symbolic links to be created (otherwise, hard links are created).
s选项强制创建这些符号链接(否则就创建硬链接)。
You will get an error if you attempt to create hard links that cross file systems or that are for directories.
如果您试图创建跨越文件系统或用于目录的硬链接,您会得到一个错误。
Hard-links — Preserve hard links (by creating a hard link on the destination) instead of copying the file content.
hard - links——保留硬链接(在目标目录中创建硬链接),而不是复制文件内容。
Because hard links point to an inode, and inodes are only unique within a particular file system, hard links cannot cross file systems.
由于硬链接指向一个inode,且inode仅在特定文件系统内是惟一的,硬链接不能跨越文件系统。
If a file has multiple hard links, the file is deleted only when the last link pointing to the inode is deleted and the link count goes to 0.
如果一个文件有多个硬链接,仅在指向inode的最后一个链接被删除且链接数为0时文件才会被删除。
Listing 1 shows how to create a directory containing two files and a subdirectory with two hard links to file1, one in the same directory and one in the subdirectory.
清单1展示了如何创建一个包含两个文件和一个子目录的目录,其中有两个到file1的硬链接,其中一个在同一目录中,而另一个在子目录中。
Listing 3 shows you two ways to create a soft link for the file1 that we just created, and also how to create soft links instead of the two hard links that failed in Listing 2.
清单3向您展示了为我们刚才创建的file1创建软链接的两种方法,还展示了如何创建软链接,而非清单2中创建失败的两个硬链接。
Many attacks only work if they trick the privileged program into doing something unintended while its privileges are enabled (for example, by creating weird symbolic links and hard links).
很多攻击只有在它们欺骗有特权的程序做一些计划外的事情而且程序的特权被启用时才会成功(例如,通过创建不合常理的符号链接和硬链接)。
To find which files are hard links to a particular inode, you can use the find command and the -samefile option with a filename or the -inum option with an inode number, as shown in Listing 11.
要查出哪些文件是对特定inode的硬链接,您可以使用find命令和带文件名的-samefile选项或带inode号的-inum选项,如清单11所示。
Hard links are very cheap to create and maintain, so a full backup is simulated using only an incremental scheme.
硬链接的创建和维护开销很低,所以只使用增量方案就可以模拟完整备份的效果。
Hard links are very cheap to create and maintain, so a full backup is simulated using only an incremental scheme.
硬链接的创建和维护开销很低,所以只使用增量方案就可以模拟完整备份的效果。
应用推荐