[linux-l] Warum ist eine Verknüpfung 42 kB groß?

Matthias Kranz matthiaskranz at gmx.de
Mo Dez 11 10:19:40 CET 2006


On Mon, 2006-12-11 at 09:25 +0100, Detlef Lechner wrote:
> Hallo,
> In meinem Verzeichnis
> usr/share/doc/Debian/reference
> gibt es u. a. zwei Dateien
> ----------------------------------------
> index.html		42,1 kB Verknüpfung mit html-Dokument
> reference.de.html       42,1 kB HTML-Dokument
> ----------------------------------------
> Wenn ich sie ausführe, erhalte ich dasselbe Ergebnis.
> Warum ist die erste 42,1 kB groß?

[root at localhost tmp]# dd if=/dev/zero of=./file1 bs=1024 count=42
42+0 records in
42+0 records out
43008 bytes (43 kB) copied, 0.00054588 seconds, 78.8 MB/s
[root at localhost tmp]# ln -s file1 symlink
[root at localhost tmp]# ln file1 hardlink
[root at localhost tmp]# ls -l
total 100
-rw-r--r-- 2 root root 43008 Dec 11 10:15 file1
-rw-r--r-- 2 root root 43008 Dec 11 10:15 hardlink
lrwxrwxrwx 1 root root     5 Dec 11 10:15 symlink -> file1

Cheers,
Matthias
-- 
Matthias Kranz
Berlin/München
http://mkr.oerks.de




Mehr Informationen über die Mailingliste linux-l