Alle boeken

Professioneel

Apps Over Coach Inloggen Begin met lezen

Computer Science · Begrippenlijst

Wat is Hard link, symbolic link?

Ook bekend als: hard link · symbolic link

Definition 8.12 University Computer Science — Year 1 · Hoofdstuk 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.
Lees in het hoofdstuk →