linux软链接和硬链接的区别
2009-05-22 11:33
204 查看
A "hard link" is another name for an existing file; the link and the
original are indistinguishable. Technically speaking, they share the
same inode, and the inode contains all the information about a
file--indeed, it is not incorrect to say that the inode _is_ the file.
On all existing implementations, you cannot make a hard link to a
directory, and hard links cannot cross file system boundaries. (These
restrictions are not mandated by POSIX, however.) "Symbolic links" ("symlinks" for short), on the other hand, are a
special file type (which not all kernels support: System V release 3
(and older) systems lack symlinks) in which the link file actually
refers to a different file, by name. When most operations (opening,
reading, writing, and so on) are passed the symbolic link file, the
kernel automatically "dereferences" the link and operates on the target
of the link. But some operations (e.g., removing) work on the link
file itself, rather than on its target. *Note Symbolic Links:
(libc)Symbolic Links.
original are indistinguishable. Technically speaking, they share the
same inode, and the inode contains all the information about a
file--indeed, it is not incorrect to say that the inode _is_ the file.
On all existing implementations, you cannot make a hard link to a
directory, and hard links cannot cross file system boundaries. (These
restrictions are not mandated by POSIX, however.) "Symbolic links" ("symlinks" for short), on the other hand, are a
special file type (which not all kernels support: System V release 3
(and older) systems lack symlinks) in which the link file actually
refers to a different file, by name. When most operations (opening,
reading, writing, and so on) are passed the symbolic link file, the
kernel automatically "dereferences" the link and operates on the target
of the link. But some operations (e.g., removing) work on the link
file itself, rather than on its target. *Note Symbolic Links:
(libc)Symbolic Links.
相关文章推荐
- linux软链接和硬链接的区别
- Linux软链接硬链接的区别
- Linux软链接和硬链接的区别
- linux软链接硬链接复制的区别
- Linux 硬链接与软链接的区别
- 关于硬链接和软连接(符号链接)的区别
- linux软链接和硬链接
- Linux软链接和硬链接
- LINUX 硬链接与软链接的区别
- 符号链接和硬链接的区别
- Linux下软链接和硬链接的区别
- linux软链接和硬链接
- 硬链接和软链接的区别和作用
- linux软链接和硬链接文件的区别
- 文件系统-硬链接与软链接的区别
- 硬链接与软连接的区别_(转)
- 硬链接和软连接的区别
- linux CentOS 5.8 硬链接与软链接的区别...
- 软链接和硬链接的区别
- 硬链接和软连接的区别