1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
<html>
<head>
<title>What is a Directory Tree?</title>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<LINK href="format.css" type="text/css" rel="stylesheet">
</head>
<BODY>
<h2>What is a Directory Tree?</h2>
<p>On most computer operating systems, so on Microsoft Windows, the data on the
hard disk are organized hierarchically.
</p>
<p>On the one hand there are the <i>files</i> which have a certain size and contain
the effective data. Each file has a name. Under Microsoft Windows the "filename
extension" informs about the type of the file. The extension ".exe", for
instance, indicates that it's a program file. The extension ".doc" indicates a
WinWord document, ".jpg" is a photo, and so on. But ridiculously the Microsoft
Windows Explorer hides these filename extensions by default. You can change
this behaviour in the options menu of the Windows Explorer.
</p>
<p>On the other hand there are <i>directories</i>. The Windows Explorer and
WinDirStat, too, symbolize directories as yellow folders. Directories also
have a name, but normally without a filename extension. Directories only serve
to contain files and other directories ("sub-directories"). Due to the fact
that directories can contain subdirectories, and those again can contain
subdirectories, the result is a hierarchical structure on the disk.
</p>
<p>
<img src="tree.jpg" width="99" height="105" align="left" vspace="20" hspace="20" />
Instead of "hierarchical structure" we simply say <i>tree structure</i>. Since
a tree is built hierarchical as well: The trunk branches out into branches, the
branches into sub-branches, twigs and finally into the leafs. In a file system
the so called root directory is the trunk, the directories
are the branches and the files are the leafs.
</p>
<p>
That's why we call the file system of a computer simply a "directory tree".
</p>
<p><br clear="all" />
Unlike most real trees, on a disk the trunk and the branches already have
leafs. And, unlike most real trees, too: the <u>files</u> are the voluminous
entities (the size of which is mesured by megabytes or gigabytes), whereas the
actual directories are neglectibly small. By the way, we imagine abstract trees
as turned round: the root at the top, the leafs at the bottom.
</p>
<p>If you saw a branch off a tree and stick it into the earth, then it becomes
itself a little tree (well, at least it looks like one): Every branch is,
together with its sub-branches and leafs, itself a tree, a <i>subtree</i>.
</p>
<p>The family tree metaphor is often used as well: The subdirectories and files of
a directory are called its <i>children</i>. And a directory containing a
subdirectory or file is called their <i>parent</i>. The root directory is
earliest ancestor of all items in the directory tree.
</p>
<p>A <i>path</i> like "C:\documents\letters\draft\loveletter.doc" indicates that on
the hard disk C:, in the root directory "C:\" there is a directory "documents",
under it the subdirectory "letters", under it a subdirectory "draft" and in
there a file "loveletter.doc". So the path is a precise representation of the
way from the root to the leaf.
</p>
</BODY>
</html>
|