Cartella Directório Verzeichnis Répertoire Directorio

What is a directory?

A directory (also known as a folder) is an IT element that can contain files.
Imagine a large dresser containing drawers in which files or other drawers are stored. A directory can in fact contain:

  • files
  • other directories

Relative relationships

Using the example of the dresser, the largest entity containing other entities is the dresser: it cannot be found in a drawer!
In IT language, this entity is known as the root directory (sometimes simply referred to as "root"): it is the lowest-level entity since it can contain files or directories but cannot itself be contained in a directory!

It is designated by "\" (in Windows environment) or by "/" (in UNIX/Linux environment). There is only one root in the UNIX system and one for each partition in Microsoft Windows.

A directory containing another directory is known as a "parent directory". When moving from a directory to a parent directory, the latter is designated by "..." on most systems (type "cd..." in DOS or UNIX to access a parent directory).

Let us look at the layout of a directory system in Windows 95:

In this example directory2 is the parent of directory20 and directory 21. "directory2" in relation to "directory20" will be designated "..." The root (d:\) in relation to "directory20" will be designated "..\.." since they are separated by two relationships.

The concept of path

The path is the succession of directories starting from the root and leading to the required file. In Windows systems, a path will be written x:\directory1\directory2\ whereas in a Unix system it will be written /directory1/directory2/.

Last update on Thursday October 16, 2008 02:43:19 PM.This document entitled « Directory » from Kioskea (en.kioskea.net) is made available under the Creative Commons license. You can copy, modify copies of this page, under the conditions stipulated by the licence, as this note appears clearly.

Best answers for « Directory » in :
Warning: rmdir(..): Directory not empty Show Warning: rmdir(..): Directory not empty If you are attempting to delete a PHP file and that you get the error message: Warning: rmdir(..): Directory not empty. This might mean that the directory is not empty. To be able to...
[MS-Dos]List the contents of a directory in a file Show [MS-Dos]List the contents of a directory in a file Intro Explanation Intro It may be convenient to make the listing of one or more directories in a file, to make a catalog of files. Under MS-DOS (or Windows by opening a...
Remove Directory Links from Favorites Show Remove Directory Links from favourites Hiding Links folder Permanently delete the Links folder Despite deleting the folder "Links" in favorites, this one is regenerated automatically when you restart the computer. There are two...
Cleaning .thumbnails directory ShowCleaning .thumbnails directory Most desktop applications used under linux are able to display thumbnails of images stored on your PC. To quicken the display of these images, Linux tend to store them. The problem with these thumbnails...
[PHP]Listing the contents of a directory Show[PHP]Listing the contents of a directory With PHP, the contents of a directory and its subdirectories can be viewed. Here below is a recursive function, allowing you to browse directories and subdirectories and view the files: function...
Computer Manufacturers Directory ShowComputer Manufacturers Directory 3com Abit Acer Alcatel AMD Apple AS Rock Asus Atheros Canon Cisco Com One Compaq Connectland Conexant Creative Labs DELL D-Link Elitegroup Epson Foxconn Fujitsu Siemens
Download Directory Mate ShowDescription The application is designed by MADSolutions. Directory Mate 2007 is a tool that enables you to export or import tool for windows 2003 & 2007 active directory. Simple and easy to use, the application has been awarded from various popular...
File sharing in Windows XP ShowAdvantages File sharing involves making the content of one or more directories available through the network. All Windows systems have standard devices making it easy to share the content of a directory. However, file sharing may lead to security...
UNIX Commands ShowTable of the main UNIX commands Unix Commands Description Options ls lists the content of a directory -a Displays all files, including hidden files -I Displays a...
Linux commands ShowTable of main Linux commands Command Description DOS equivalent ls lists the content of a directory dir cd change directory cd cd .. parent directory cd.. mkdir creates a new...