全部书籍

专业

应用 关于 Coach 登录 开始阅读

书籍暂未推出简体中文版——当前显示英文版。

Computer Science · 术语表

什么是 Hard link, symbolic link?

又称: hard link · symbolic link

Definition 8.12 University Computer Science — Year 1 · 第 8 章 — The Shell

A directory entry is a name for a file. A hard link, made by ln a b, is a second name for the same file: both names are equal, and the file disappears only when its last name is removed. A symbolic link, made by ln -s a c, is a small file that holds a path; opening it opens the file at that path, if there is one.

Two hard links and a symbolic link. Removing station.txt leaves the file with one name, copy.txt; the symbolic link still holds the path station.txt, which now names nothing.
Two hard links and a symbolic link. Removing station.txt leaves the file with one name, copy.txt; the symbolic link still holds the path station.txt, which now names nothing.
在原文中阅读 →