comp.lang.ada
 help / color / mirror / Atom feed
From: Jacob Sparre Andersen <sparre@nbi.dk>
Subject: Re: Ada.Directories
Date: Sun, 21 Oct 2007 17:38:09 +0200
Date: 2007-10-21T17:38:09+02:00	[thread overview]
Message-ID: <ygeprz84gwu.fsf@hugsarin.dmusyd.edu> (raw)
In-Reply-To: 411h1vmet9dh$.uij5asq361ds$.dlg@40tude.net

Dmitry A. Kazakov wrote:
> On Sun, 21 Oct 2007 15:05:57 +0200, Jacob Sparre Andersen wrote:
>> Dmitry A. Kazakov wrote:

>>> "." is not a hard/soft link,
>> 
>> On a Unix system it _is_ a hard link.
>
> AFAIK, no, because you cannot unlink it:

Unfortunately what you know isn't quite right.

> $ mkdir Test
> $ ls -CFa Test
> ./ ../

If you had used the command "ls -la" at this point, you would have
seen something like this:

total 12
drwxr-xr-x  2 sparre sparre 4096 Oct 21 17:32 .
drwxrwxrwt 12 root   root   8192 Oct 21 17:34 ..

The important part here is the "2" in the second line.  It's the "link
count" for the file ".".  As you can see, there are two links to ".".
The one is "Test" in the parent directory, and the other is ".".

Greetings,

Jacob
-- 
"If you think Tuck has said something that is completely
 wrong, you are almost certainly missing something :-)"



  parent reply	other threads:[~2007-10-21 15:38 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-20  9:21 Ada.Directories Dmitry A. Kazakov
2007-10-20 18:43 ` Ada.Directories anon
2007-10-20 19:40   ` Ada.Directories Dmitry A. Kazakov
2007-10-20 20:35     ` Ada.Directories Maciej Sobczak
2007-10-21  7:40       ` Ada.Directories Dmitry A. Kazakov
2007-10-21 13:05         ` Ada.Directories Jacob Sparre Andersen
2007-10-21 13:26           ` Ada.Directories Dmitry A. Kazakov
2007-10-21 15:29             ` Ada.Directories Markus E L
2007-10-21 15:38             ` Jacob Sparre Andersen [this message]
2007-10-21 17:19             ` Ada.Directories Martin Krischik
2007-10-21 18:52               ` Ada.Directories Dmitry A. Kazakov
2007-10-21 20:32                 ` Ada.Directories Markus E L
2007-10-21 23:52         ` Ada.Directories Robert A Duff
2007-10-22 11:08         ` Ada.Directories Harald Korneliussen
2007-11-15 11:44           ` Ada.Directories Markus E L
2007-11-16 13:27             ` Ada.Directories Dmitry A. Kazakov
2007-11-16 16:48               ` Ada.Directories Martin Krischik
2007-11-16 18:47                 ` Ada.Directories Larry Kilgallen
2007-11-16 20:35                   ` Ada.Directories Martin Krischik
2007-11-16 19:00                 ` Ada.Directories Dmitry A. Kazakov
2007-10-21  1:25     ` Ada.Directories anon
2007-10-20 22:36   ` Ada.Directories Larry Kilgallen
2007-10-22 18:56 ` Ada.Directories Adam Beneschan
2007-10-23  9:04   ` Ada.Directories Peter Hermann
2007-10-23 12:07     ` Ada.Directories Larry Kilgallen
2007-10-23 13:01       ` Ada.Directories Peter Hermann
2007-10-23 16:08       ` Ada.Directories Robert A Duff
2007-10-23 17:11         ` Ada.Directories Larry Kilgallen
2007-10-24  0:55   ` Ada.Directories Brian May
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox