[Courses][Linux comands] tee, file, stat, find
Laurel Fan
laurel at sdf.lonestar.org
Wed Mar 10 11:54:44 EST 2004
On Wed, Mar 10, 2004 at 01:33:53PM -0500, Katie Bechtold wrote:
> What's going on there? There are three links to the directory Mail,
> but "find" only finds one.
stat includes . (every directory contains a link to itself) and
.. (every directory contains a link to its parent directory). So the
three links that stat finds are:
Mail
Mail/.
Mail/<some-subdirectory-of-mail>/..
ls ignores . and .. (as well as all other files or directories
starting with .) unless you give it the -a option. find may do
something similar (or just ignore . and .. to avoid infinite
recursion).
--
laurel at sdf.lonestar.org
http://dreadnought.gorgorg.org
More information about the Courses
mailing list