CINXE.COM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns= "http://www.w3.org/1999/xhtml"> <head> <link rel="stylesheet" type="text/css" href="belug1.css" /> <title></title></head> <body bgcolor="#ffffff"> <a href="index.html">LINFO</a> <br /><center><h1>Directory Tree Definition</h1></center><br /> <table width="100%"><tbody><tr><td width="10%"></td><td width="80%"> <br /> <p> A <i>directory tree</i> is a hierarchy of <i>directories</i> that consists of a single directory, called the <i>parent directory</i> or <i>top level directory</i>, and all levels of its <i>subdirectories</i> (i.e., directories within it). </p> <p> A directory in a <a href="unix-like.html">Unix-like</a> <a href="operating_systems_list.html">operating system</a> is a special type of file that contains a list of names and corresponding <a href="inode.html"><i>inodes</i></a> for each <i>filesystem object</i> (i.e., directory, file or link) that appears to the user to be in it. An inode is a <i>data structure</i> that stores all the information about a file except its name and its actual data. A data structure is a way of storing data so that it can be used efficiently. </p> <p> Any directory can be regarded as being the start of its own directory tree, at least if it contains subdirectories. Thus, a typical computer contains a large number of directory trees. </p> <p> The term <i>directory tree</i> takes its name from the fact that a diagram of it resembles an inverted tree, or a branch thereof, usually with a series of directories branching off from a single directory, more directories branching off from some or all of them, etc. </p> <p> Virtually all modern computer operating systems use directory trees for organizing files. Unix-like operating systems feature a single <a href="root_directory.html"><i>root directory</i></a> from which all other directory trees emanate. Microsoft operating systems can have multiple independent root directories, with names such as C:, D: and E:. </p> <p> The <a href="du.html"><i>du</i></a> (i.e., <i>disk usage</i>) <a href="command.html">command</a> is a convenient tool for obtaining information about directory trees, including total disk space consumption of the tree (inclusive of all of the files in it) and the names and sizes of each branch and file. </p> <p><br /></p> <p><br /></p> <p><br /></p> <p><br /></p> <p><br /></p> <p class="copy">Created July 11, 2005.<br /> Copyright © 2005 The Linux Information Project. All Rights Reserved.</p> </td><td width="10%"></td></tr></tbody></table> </body></html>