| Root Directory |
Article Index for Root |
Website Links For Root |
Information AboutRoot Directory |
| CATEGORIES ABOUT ROOT DIRECTORY | |
| computer file systems | |
|
METAPHOR To use the example of a physical file cabinet, if the separate drawers in the file cabinet are represented as the highest level of Sub-directories in the file system, then the room the file cabinet is in may be representated as the root directory. That is, the other directories may be inside it, but the root directory cannot go in any other directories, at least in that file system. In many Operating System s, including Microsoft Windows and Unix , you may place Files inside the root directory, as well in its sub-directories. One may envision this as placing paper files in the room but not in the drawer of any file cabinet. MULTIPLE ROOT DIRECTORIES Unix abstracts the nature of this tree hierarchy entirely, and in Unix the root directory is denoted /. ''All'' filesystem entries, including (labeled C:\ for a particular partition C) and there is no common root directory above that. Strictly speaking, recent versions of Windows do support more abstract hierarchies, with partitions mountable within a directory of another drive, though this is rarely seen. In some contexts, it is also possible to refer to a root directory containing all mounted drives, although it cannot contain files directly as it does not exist on any file system. For instance, when linking to a local file using the "file:" URI Scheme , the syntax is of the form "file:///C:/...", where "file://" is the standard prefix, and the third '/' represents the root of the local system. In Unix and similar operating systems, each Process has its own idea of what the root directory is. For most processes this is the same as the system's actual root directory, but it can be changed by calling the Chroot System Call . This is typically done for security purposes to restrict which files a process may access to just a subset of the file hierarchy. /ROOT On many Unices, there is also a directory which is named /root . Confusingly, it is not a ''root directory'' in the sense of this article, but rather the Home Directory of the Superuser (conventionally known as "root"). SEE ALSO |
|
|